-
Notifications
You must be signed in to change notification settings - Fork 35
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
Apple Pay #42
Comments
UpdateUsing debug mode I was able to see the following things:
To be continued.. |
Hi @ChielBruin, have you an exemple how you call AdyenPayment.startPaymentPromise() |
@mickadoua Kind of, I can make credit-card and iDEAL payments correctly and Apple Pay payments work for 99%. The dropin shows the Apple Pay popup, I can authenticate myself to confirm the payment, I get an The code I use: const componentData = {
scheme: {
card_public_key: adyenConfig.clientApiKey,
showStorePaymentField: canStorePaymentDetails,
showsStorePaymentMethodField: canStorePaymentDetails,
},
bcmc: {
card_public_key: adyenConfig.clientApiKey,
showStorePaymentField: canStorePaymentDetails,
showsStorePaymentMethodField: canStorePaymentDetails,
},
applepay: {
apple_pay_merchant_id: adyenConfig.applePayMerchant,
},
};
try {
// Make the payment request
const result = await AdyenPayment.startPaymentPromise(
AdyenPayment.DROPIN,
componentData,
paymentDetails
);
// Handle result
// ...
} catch (err) {
// Handle any errors
// ...
} |
This is the view containing YellowBox |
I did some more debugging, this is what I've found:
|
I have found the issue 🎉 In func finish(...) {
...
self.sendSuccess(message:msg)
currentComponent.stopLoading(withSuccess: true) {
(...).dismiss(animated: true)
}
} I am unsure why this does not work for ApplePay, but by reordering the code in the following way it does work: func finish(...) {
...
currentComponent.stopLoading(withSuccess: true) {
self.sendSuccess(message:msg)
(...).dismiss(animated: true)
}
} I will open a PR for this later today |
Thanks for all your debugging information, |
Hello @ChielBruin, I update the Adyen depts to from 3.6.0 to 3.8.0
Can you try with this new version ? |
I am not able to test this currently, but I will do so when I am back in the office |
I've set up the integration of this library according to the steps described here: https://mkharibalaji.github.io/react-native-adyen-payment/#/INSTALLATION?id=ios
As a result, I am able to pay in the app using credit cards and iDEAL, but I have trouble getting Apple Pay to work properly. At the moment I can make a successful payment (such that it shows in the Adyen transaction overview and is administered correctly by our backend), but the app freezes completely after the Apple Pay dialog closes. After that you are required to force-close the app to get it to respond again.
Steps I've tried to investigate the issue
Data received from the backend
The text was updated successfully, but these errors were encountered: