Adyen / adyen-react-native

Adyen React Native
https://docs.adyen.com/checkout
MIT License
43 stars 32 forks source link

In Android for Paypal Payment onAdditionalDetails callback not trigger #345

Closed swatibohra9 closed 5 months ago

swatibohra9 commented 5 months ago

Describe the bug After paypal selection from Adyen DropIn in Android it goes to the paypal payment site after clicking on complete purchase it navigate back to the application but we are not able to get any callback event of payment completed or failure. For ios after navigating back to the application it trigger the onAdditionalDetails callback method and we are able to place order. To Reproduce Steps to reproduce the behavior:

  1. Go to AdyenDropIn
  2. Click on 'paypal' option from the dropIn
  3. Complete the Payment It navigate back to the application
  4. No callBack trigger

Expected behavior For Android also it should trigger the onAdditionalDetails

descorp commented 5 months ago

Hey @swatibohra9

What returnURL you are using on Android?

swatibohra9 commented 5 months ago

We are not setting any returnUrl it is coming from onSubmit returnURL for android - > adyencheckout://(application id) @descorp

descorp commented 5 months ago

@swatibohra9

This is good - this is how it should be. Do you have any logs from Android Studio?

swatibohra9 commented 5 months ago

Hi @descorp sharing you the logcat file for android paypal payment can you please look into this [Uploading logcat.txt…]()

Screenshot 2024-01-29 at 6 36 15 PM Screenshot 2024-01-29 at 6 36 43 PM
descorp commented 5 months ago

Hey @swatibohra9

We are not setting any returnUrl it is coming from onSubmit returnURL for android - > adyencheckout://(application id)

The logs above are not very informative, but it looks to me that the returnUrl used here is kcp://adyen/payment. I would suggest to check this with your backend team for an actual value of returnURL used in this transaction. If no luck - please contact Adyen Support and provide them with PSP reference of this transaction (could be found in CA portal or backend trace logs).

descorp commented 5 months ago

Hey @swatibohra9

Any luck?

swatibohra9 commented 5 months ago

yes it is an issue with returnUrl now it has been fixed for adyen