I have implemented Stripe PaymentIntent using JAVA code described here.
I have opened this PaymentSheet in a separate Activity to display the timer above this sheet because we are not able to add any view in the PaymentSheet. I have achieved this by adding a timer view in the activity layout which is opening this PaymentSheet.
Now, I want to close the PaymentSheet programmatically when my timer gets off. I have tried to finish the activity when timer gets off but PaymentSheet keeps open and only the Activity gets finished. There is no method to close PaymentSheet from Stipe SDK. Stripe react-native SDK is having timeout parameter to close the PaymentSheet but similar thing is not available in the native Android SDK. Reference for react-native
Any idea/suggestion would be appreciated.
I'm not aware of any direct support for this in the native SDKs, but you can inspect the implementation details of the stripe-reactive-native
PR you references. Seeing how this was implemented for Android within React Native should allow you to follow a similar pattern with your own native app.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments