#Brant

1 messages · Page 1 of 1 (latest)

daring geyserBOT
normal holly
#

Hello! No, there is no way to pre-fill a specific Payment Method.

stark breach
#

Oh no! hmm...
What would you suggest to achieve this scenario:
We want to offer users (costumers) a section in our app where they can add cards and select one as default. Then they can purchase our products with the default card that they added

#

These are one-time purchases

normal holly
#

You would need to build your own custom payment page and not use Checkout for that.

#

Then you would create Payment Intents as needed.

stark breach
#

I was looking the docs for SetupIntent as Stripe suggests to use this instead of manually create payment methods, but the example uses checkout sessions to retrieve this SetupIntent. Can you use it outside a Checkout Session?

#

Or should i risk it and manually create the payment methods and attach them to the costumer through API

normal holly
#

You should always use a Setup Intent if you're collecting payment information for future use without taking a payment at the time.

#

Not sure what you mean by the Checkout Session retrieving a Setup Intent? That's not really a thing.

#

Can you point me to what you're looking at?

stark breach
#

Oh it has to be a setup session

normal holly
#

Where in there do you see a Checkout Session retrieving a Setup Intent? A Checkout Session can create a Setup Intent for you, is that what you mean?