adyen-react-native icon indicating copy to clipboard operation
adyen-react-native copied to clipboard

[NEED ASSIST] End spinner without closing DropIn

Open ahmetgsu opened this issue 4 years ago • 4 comments

We are trying to implement the Adyen DropIn for Preauthorization on our React Native project.

When the resultCode is Refused due to the wrong CVV or an issue with the expiry date of the card, we dismiss the DropIn and display the error message. We tried not to dismiss the DropIn and only show the error message on the screen for that specific case to prevent the users from re-entering the same card information. However, the spinner never ends, and the input fields are not interactive.

Is there any way to stop the spinner without closing the DropIn?

2022-04-07_23-59-38

2022-04-08_00-04-49

ahmetgsu avatar Apr 07 '22 22:04 ahmetgsu

Hey @ahmetgsu

Thanks for reaching out!

At the moment - this is intended behaviour of our SDK. All our Components never un-blocking themselfs and intended to be a "one-time" operation:

  • It prevents CVC / Expiry date "brute forcing"
  • Improve conversion rate
  • In some cases it helps to avoid double charges (e.x. shopper have redirect payment method, but manually goes back to app)

descorp avatar Apr 08 '22 07:04 descorp

Thank you, @descorp, for your prompt reply.

One can continue the transaction without hiding the CardComponent on Android after the CVV declined message. Is this a kind of bug in that case?

https://user-images.githubusercontent.com/48296634/162396293-7750ff84-9314-4b96-8862-ab64923227d4.mov

ahmetgsu avatar Apr 08 '22 08:04 ahmetgsu

I am afraid this is a simple misalignment between iOS SDK and Android SDK 😅 I will follow on this with Android team, will keep you posted


Thanks for your feedback @ahmetgsu 💚 This is a main reason we started React Native support project - to even this kind of misalignments..

descorp avatar Apr 08 '22 09:04 descorp

Hey @ahmetgsu

As for beta-7 and future beta-8 there would be no option to dissmis/stop "loading" after didSubmit is triggered. Sorry for mis-information.

Justification:

This behaviour is available on iOS DropIn, but not supported no Android DropIn. Previously (up to beta-4) Card Component on Android was using custom implementation, but currently it is utilising a DropIn. To enable it, we have to wait till Android DropIn supports it (expected on v5)

descorp avatar Feb 01 '23 13:02 descorp