Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateMitPaymentAuthorizationHold #15

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

OttiaDevsPT
Copy link
Collaborator

CreateMitPaymentCommit
CreateCitPaymentCharge
CreateCitPaymentAuthorizationHold
CreateCitPaymentCommit
PayAndAddCard
createAddCardFormRequest
createMitPaymentCharge

OttiaDevsPT and others added 8 commits April 29, 2024 23:29
Update Exception
Refactor code
…lAndFixException

Fix/add support for vat rate as decimal and fix exception
CreateMitPaymentCommit
CreateCitPaymentCharge
CreateCitPaymentAuthorizationHold
CreateCitPaymentCommit
PayAndAddCard
createAddCardFormRequest
createMitPaymentCharge
CreateMitPaymentCommit
CreateCitPaymentCharge
CreateCitPaymentAuthorizationHold
CreateCitPaymentCommit
PayAndAddCard
createAddCardFormRequest
createMitPaymentCharge
…re/tokenization

# Conflicts:
#	paytrailpayment-sdk/src/main/java/io/paytrailpayment/dto/request/model/Item.java
#	paytrailpayment-sdk/src/test/java/io/paytrailpayment/CreatePaymentUnitTest.java
@kotivuori
Copy link
Collaborator

kotivuori commented Jan 20, 2025

Test createAddCardFormRequest_Success_ReturnCode200

Data sent to Paytrail after changing the client to use correct test credentials 375917 and SAIPPUAKAUPPIAS:

"headers": {
"checkout-account": "375917",
"checkout-algorithm": "sha256",
"checkout-method": "POST",
"checkout-nonce": "c15a1670-bccd-421b-bc26-a55cd243b3f5",
"checkout-timestamp": "2025-01-20T13:23:55.920Z",
"signature": "32a765945f037bcd30e502dcb1c7748f0efebe2566dcd4d2bdd2444fd84884b0"
},
"body": {
"checkout-account": 375917,
"checkout-algorithm": "sha256",
"checkout-method": "POST",
"checkout-nonce": "6501220b16b7",
"checkout-timestamp": "2023-08-22T04:05:20.253Z",
"checkout-redirect-success-url": "https://somedomain.com/success",
"checkout-redirect-cancel-url": "https://somedomain.com/cancel",
"signature": "542e780c253761ed64333d5485391ddd4f55d5e00b7bdc7f60f0f0d15516f889",
"language": "EN"
}
With Add card form authentication is done with form parameters, no headers are used for authentication. At the moment the SDK is sending headers with invalid signature causing "Signature mismatch" error from Paytrail API.
Update this so that add card form request isn't sending headers like other requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants