#sothomas

1 messages ยท Page 1 of 1 (latest)

glass needleBOT
nova star
#

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

shell surge
#

Okay, so there's no test key that I can use?

#

I just want to see the payment sheet for some discovery work.

nova star
#

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)

shell surge
#

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:

  1. In order to use UI components, do I have to use the sheet or can it be a screen like above?
  2. With the PaymentSheet, can you input a bank account in addition to a card?

Thank you so much!

nova star
shell surge
#

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?

nova star
#

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!

shell surge
#

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?

quasi lava
#

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