#Brant
1 messages · Page 1 of 1 (latest)
Hello! No, there is no way to pre-fill a specific Payment Method.
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
You would need to build your own custom payment page and not use Checkout for that.
There's a guide for the saving part here: https://stripe.com/docs/payments/save-and-reuse
Then you would create Payment Intents as needed.
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
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?
The same that you linked me here. First i was searching here https://stripe.com/docs/payments/setup-intents
then followed the link labeled as: "Save cards without making an initial payment"
Oh it has to be a setup session
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?