You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure that you are sending in the correct token. Do not escape the stringified JSON; send it as it is.
To Reproduce
Steps to reproduce the behavior:
Using the C# Adyen client library, receive a MakePayment payload from Adyen Dropin client and create a CheckoutPaymentMethod object using the static FromJson method and the received paymentMethod object contents.
On receipt the paymentMethod contents looks like something this. Note the encoding at the end of each property value inside the signedMessage object:
After creating an object using the FromJson method, note the change to the end of the property values inside the nested signedMessage object that causes the issue:
For anyone else that finds themselves here, I resolved the issue. It helps if your incoming payload is mapped to the 'Adyen.Model.Checkout.PaymentRequest' model, then all is well.
Describe the bug
CheckoutPaymentMethod .FromJson method doesn't preserve GooglePayToken integrity causing failure to complete payment.
On submission of
PaymentRequest
, the following error is returned from the Adyen API:In the Adyen documentation for handling errors with Google Pay (https://docs.adyen.com/development-resources/error-codes/#5202-invalid-paywithgoogle-token), you state:
To Reproduce
Steps to reproduce the behavior:
Using the C# Adyen client library, receive a
MakePayment
payload from Adyen Dropin client and create aCheckoutPaymentMethod
object using the staticFromJson
method and the receivedpaymentMethod
object contents.On receipt the
paymentMethod
contents looks like something this. Note the encoding at the end of each property value inside thesignedMessage
object:After creating an object using the
FromJson
method, note the change to the end of the property values inside the nestedsignedMessage
object that causes the issue:Expected behavior
The contents of the
googlePayToken
should be preserved and not altered in any way.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: