How to close Stripe PaymentSheet programatically from code in Android

shailesh

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.

enter image description here

Nolan H

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.

edited at
0

Comments

0 comments
Login to comment

Related

How to programatically close a matplotlib window?

How to programatically close a Veutify dialog

How to programatically add variables to the Shell from which some code was invoked?

How to Programatically open NgbPopOver from code without actually clicking on a button

How to close Vuetify Expansion Panel programatically?

How to programatically close a view in eclipse application?

How to close a Persistent Bottom Sheet programatically in Flutter?

How to fetch Device Name (NOT Build.MODEL) from Android programatically?

How to find mp3 files from sdcard in android programatically

Android : How to set an image to an imageview from a url programatically

How to programatically check the available space on Google Drive from an Android app

How to generate image jpg from html + css in android programatically?

Android: How to programatically login to website and retrieve data from it?

How to add items to a stringArray in arrayList from mainActivity programatically Android

How to delete SMS programatically in android

How to close a Java Swing application from the code

Android - Programatically close the Wi-Fi dialog/panel

Running NUnit tests from code (programatically)

How to implement 'server side' Stripe code into Android App using SQLite

How to fill StripeCheckout's shippingAddress && billingAddress from code [REACT ,STRIPE ]

How to programatically close NSPopover being used in Mac Menu bar app

How can I close a Popover programatically with native base?

How to use the stripe code (Retrieve and Delete) to retrieve and cancel a subscription from Stripe using Nodejs?

How to get the lines with a cursor programatically in VS Code?

How to programatically prove this code has a race condition?

Sharing image on twitter from android programatically

Getting the text from programatically opening the android keyboard

Restrict applications from using VPN programatically on Android

How to create a Payment Method of type Card from Android using Stripe?