mkharibalaji / react-native-adyen-payment

React Native Adyen Payment
https://mkharibalaji.github.io/react-native-adyen-payment/
MIT License
35 stars 35 forks source link

Closing payment Modal #19

Closed dvdhoek closed 3 years ago

dvdhoek commented 3 years ago

Hi there,

We've been busy with integrating Adyen using your project, however we are running into the following issue:

If we use the Adyen test server, everything works fine up until the screen where we confirm the payment. However, when the payment is completed using our own API the modal / overlay never closes. My guess is that this has something to do with how the returnUrl is handled, but I can't figure out what. We are currently sending the returnUrl to our own API the same way as we do to the test API and do not manipulate it in any way.

If we can get some pointers we can help with documenting this, as the documentation is lacking, also on Adyen's side.

Method used:

var paymentDetails = {
          amount: {
              value: 200,//In Multiples of hundred
              currency: 'EUR'
          },
          reference: "XXXXXXXX",
          shopperReference : "XXXXXX",
          shopperEmail : "XXXXXXX@XXXX.com",
          channel: (Platform.OS === 'ios') ? "iOS" : "Android",
          countryCode: "FR",
          shopperLocale: "fr_FR",
          returnUrl: (Platform.OS === 'ios') ? 'charlyapp://' : "adyencheckout://<packageName>",
          merchantAccount: MERCHANT_ACCOUNT,
          additionalData : {
                  allow3DS2 : true,
                  executeThreeD : true
          }
};

image

dvdhoek commented 3 years ago

We found out that it was caused by a wrong response from our API, however the library isn't throwing an error. Would be good to have that, but for now the issue was on our side.