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

StoredPaymentMethodDetails doesn't have support for the "subtype" field used by the native TWINT drop-in #1360

Open
elitalon opened this issue Sep 20, 2024 · 1 comment

Comments

@elitalon
Copy link

Describe the bug
Deserialisation of a POST /payments request done against a proxy backend ignores the subtype field from the paymentMethod object in the JSON body.

This results in the drop-in integration of TWINT for iOS using a web-based UI instead of the native one.

How to reproduce
Make a POST /payments request with the following JSON body:

{
    "channel": "iOS",
    "amount": {
        "currency": "CHF",
        "value": 0
    },
    "browserInfo": {
        "userAgent": "<redacted>"
    },
    "merchantAccount": "<redacted>",
    "returnUrl": "<redacted>",
    "storePaymentMethod": true,
    "countryCode": "CH",
    "paymentMethod": {
        "type": "twint",
        "subtype": "sdk"
    },
    "shopperLocale": "en_US",
    "shopperReference": "<redacted>",
    "reference": "<redacted>",
    "recurringProcessingModel": "<redacted>",
    "shopperInteraction": "Ecommerce"
}

Expected behavior
The resulting StoredPaymentMethodDetails object stores the value of the subtype JSON field.

Screenshots
Not applicable

Desktop (please complete the following information):

  • Java Version: Java 21
  • Library Version: 28.2.0

Additional context
This problem was discovered as part of Adyen/adyen-ios#1783.

@jillingk
Copy link
Contributor

Hi @elitalon,

Thanks for reaching out here, we have a fix on the way!

Best, Jilling
Adyen

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

No branches or pull requests

2 participants