#junaid_abbasi999
1 messages ยท Page 1 of 1 (latest)
Hi ๐ you will need to tell us which Payment Method to charge when creating or confirming the Payment Intent, via the payment_method parameter.
Unless this is regarding the recurring off-session payments that occur for Subscriptions, in those cases we charge the payment method specified in invoice_settings.default_payment_method:
https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I am not doing Subscriptions. what if customer had deleted the card before charging user off-session.
then we can't fetch payment_methods.
If there are no saved payment methods that can be used, then you'll need to collect details to create a new one.
and one last thing I am using stripe/react-native SDK. when i present a paymentSheet to get info about user's card the paymentSheet present itself from the bottom of the screen. Can I do this behaviour as a part of my component where it is already there as part of my component and don't have to pop up from bottom of the screen.
Hi ๐
The PaymentSheet is designed as a bottom sheet modal that will overlay other components.