#tbhaxor.com
1 messages · Page 1 of 1 (latest)
if you use it in mode:subscription it automatically sets the default_payment_method on the Subscription it creates to the payment method used.
So next time (after subcription is canceled) user want to subscribe to new subsciption. Will it show this JCB card?
Checkout is not intended for showing a customer's existing cards in general so not really, if what you mean is you will be using Checkout a second time to create a new Subscription overalll.
It might show the saved card if very specific requirements are met(see https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer) in any case.
Yes I am providing the customer id
allow_promotion_codes: true,
success_url: context.data.successUrl,
cancel_url: context.data.cancelUrl,
customer: customerId,
billing_address_collection: "required",
this is the payload where customer Id is mentioned in the SessionCreateParams
So now, will it show the existing card?
Let's give it a shot
It works 😍
if the very specific requirements mentioned in the API refrence we are met, it might. Generally I wouldn't recommend relying on that, Checkout is more for starting new payments
but yeah it does work if you set things up the right way, as you see
The currencies you can use are determined by the country of the Stripe account where the charge is made.
This is mapped with the country customers will select in the checkout session, right? Yes/No. If No need more information.
What is your quote from?
in that context, it means the country that your Stripe account is located in
I see