Adyen / adyen-ios

Adyen iOS Drop-in and Components
https://docs.adyen.com/checkout/ios
MIT License
150 stars 120 forks source link

[NEED ASSIST] iDEAL component returns missing issuer details #1764

Closed winstoncex7 closed 1 month ago

winstoncex7 commented 1 month ago

Describe the challenge After following this getting missing issuer details error. How to pass issuer details to iDEAL component ?

The document is insufficient to understand this issue.

goergisn commented 1 month ago

Hi @winstoncex7,

Can you please answer following questions?

Environment

In the last SDK version the way of integrating iDEAL changed so this additional information would help.

winstoncex7 commented 1 month ago

Hi,

Environment : Test iOS Version: 17.4 Xcode Version : 15.3 SDK Version: 5.9.0 Adyen API Version: 71

goergisn commented 1 month ago

Can you confirm that you're using following way of integrating?

let paymentMethods = session.sessionContext.paymentMethods
// Check that the payment method is supported before showing the Component.
guard let paymentMethod = paymentMethods.paymentMethod(ofType: .ideal) else { return }
let component = InstantPaymentComponent(paymentMethod: paymentMethod,
    context: context,
    order: nil
)
self.currentComponent = component
// Set the session as the delegate.
component.delegate = session
component.initiatePayment()

The iDealComponent was removed in 5.9.0 because of the switch to iDEAL 2.0 which uses a different flow.

winstoncex7 commented 1 month ago

Yes

winstoncex7 commented 1 month ago

Getting below data in didSubmit(_ data: Adyen.PaymentComponentData, from component: any Adyen.PaymentComponent)

PaymentComponentData(amount: Optional(Adyen.Amount(value: 17408, currencyCode: "EUR", localeIdentifier: nil)), paymentMethod: Adyen.InstantPaymentDetails(checkoutAttemptId: nil, type: Adyen.PaymentMethodType.ideal), storePaymentMethod: nil, order: nil, installments: nil, supportNativeRedirect: true, browserInfo: Optional(Adyen.BrowserInfo(userAgent: Optional("Mozilla/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"))))

goergisn commented 1 month ago

This might be because iDeal 2.0 is not setup on your merchant account yet. See: https://github.com/Adyen/adyen-ios/releases/tag/5.9.0

Could you please get in touch with Support to check if it is enabled / to get it enabled?

winstoncex7 commented 1 month ago

Thank you got it.