#shubham_docs
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1232654946835501178
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- shubham_docs, 23 hours ago, 36 messages
- shubham_docs, 2 days ago, 11 messages
๐ happy to help
I am trying to add a card using payment sheet and setup intent, Then I'm trying to list all saved cards. I am processing payment on one of the saved cards. I want to mark on of them as default to process payments in the future.
What would be the best approach to do so?
Should I store the payment method details retrieved by customer ID in our own application database?
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Sure
You can set the Customer.invoice_settings.default_payment_method. It will be used to pay Invoice/Subscriptions automatically, but can also serve as an indicator for you that a Payment Method is a default for a given Customer.
Okay this will be set using Backed APIs?
Also, can this be used for confirm payment in Android SDK?
No, you need to set on the backend.
Okay so If I want to charge the customer on the default payment method using Android SDK we can't do this using this:
https://stripe.dev/stripe-android/payments-core/com.stripe.android.payments.paymentlauncher/-payment-launcher/confirm.html?query=abstract fun confirm(params: ConfirmPaymentIntentParams)
Can you share a link to this documentation
Using Android SDK payment sheet
Sorry, did you mean how to save it or how to charge it?
How to charge it
You can either charge it off-session: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
Or set use the Customer Sheet to allow customer to select one of the saved Payment Methods on the Mobile Payment Element: https://docs.stripe.com/elements/customer-sheet?platform=android
I believe the invoice_settings.default_payment_method will be pre-selected as default.
Okay, Thanks.
Just for information, can we store payment method IDs without compliance?
Also, Expiry and last 4 digits from the payment method?
Payment Method ID is just a Stripe object ID, which has no compliance requirements.
I also don't think you don't need to worry about the other 2 details.
Okay Thanks
Happy to help.