#sothomas
1 messages ยท Page 1 of 1 (latest)
setupIntentClientSecret should be the client secret you receive from Stripe after creating a SetupIntent. This will be unique per SetupIntent and totally different from your API keys
Okay, so there's no test key that I can use?
I just want to see the payment sheet for some discovery work.
You should create a SetupIntent object server side using your test mode secret key, then pass the SetupIntent's client_secret to your frontend (configured with your test mode publishable key)
Okay gotcha, thank you! This is our custom design for collecting payment method(s). I was wondering if you could let me know the best way to approximate this with the front end SDKS (eg, Android)?
More specifically:
- In order to use UI components, do I have to use the sheet or can it be a screen like above?
- With the
PaymentSheet, can you input a bank account in addition to a card?
Thank you so much!
I recommend reviewing this guide if you haven't already: https://stripe.com/docs/payments/save-and-reuse?platform=android&ui=payment-sheet
You'll need to use the sheet. I recommend testing with allowsDelayedPaymentMethods if your team plans on accepting non card payment methods.
I've looked at that doc, which leads me to believe that setting up a bank account is impossible. Can you confirm that the sheet only sets up debit and credit cards?
give me a few minutes, just checking in with my teammates on this
Okay, it should be possible to use the sheet to set up a US bank account. The docs are unfortunately misleading. I'll flag this to our team!
Okay, great! Just for posterity, if we wanted to build our native UI above, can you point me to the underlying API(s) to set up a payment method?
Hi there ๐ taking over, as my colleague needs to step away
Not sure if this is what you're looking for, but the Setup Intents API helps you set up Payment Methods for future usage: https://stripe.com/docs/api/setup_intents
Obviously you would be using the Payment Methods API as well: https://stripe.com/docs/api/payment_methods, and the Customers API: https://stripe.com/docs/api/customers
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.