#akshayn_01779
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- akshayn_01779, 9 minutes ago, 3 messages
Situation of current customer, He already has one subscription active and also has a default payment method attached to it. Now using this config above we are trying to buy another subscription. But default attached card does not appear in checkout session.
Hey there, did you see the notes in the previous message that clarified the conditions under which this is available?
In payment mode, Stripe prefills the Checkout page’s email, name, card details, and billing address with the customer’s most recent card payment method. Customers can’t update their prefilled email in the Checkout page.
You can save payment method details to have Checkout automatically attach the payment method to the Customer you pass in for future reuse.
In subscription mode, Stripe processes the customer’s default payment method if it’s a card. Otherwise Stripe processes the most recent card. The Checkout page requires a valid billing address, billing name, and billing email to prefill the customer’s card details.
Note
The payment method is only prefilled for a short amount of time after the Checkout Session creation. Afterwards, if you load the same Checkout Session, we won’t prefill the payment method anymore for security reasons. The current expiration is set to 30 minutes though this could change over time.
Yes I did but isn't it saying in subscription mode all details saved about the of customer payment get prefilled in checkout if we pass in the customer id
Not quite
The Checkout page requires a valid billing address, billing name, and billing email to prefill the customer’s card details.
This means the the customer/payment method need to have complete billing details populated before they will be resurfaced via Checkout (within the time limit allowed).
So the payment method already attached has missing details otherwise it would have been showing up in checkout. Like this test card has missing email, therefore it doesn't show up in checkout for buying another subscription
That sounds right
Awesome thanks! Let test this and get to you. I update it and see if works.