#LcO-Checkout
1 messages · Page 1 of 1 (latest)
Hi
I believe if a customer has their invoice_settings.default_payment_method set up, and if you pass their customer Id into the Checkout Session creation then the saved card will be displayed
On Customer Portal, you would need to mark the card as default
On the customer object, the payment method is set in InvoiceSettings.DefaultPaymentMethodInfo
It also shows as default on the billing portal
Can you provide the Customer Id and the checkout link?
should i do that here?
For Checkout to prefill a payment method, you need to pass a customer and:
In subscription mode, the customer’s default payment method will be used if it’s a card. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer’s card details.
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
In this case the default payment method of the customer is missing some of this information, so it's expected to not be shown on the Checkout page.
ok, understood
interestingly when i process a payment for a subscription, the payment method is added to the billing portal
but again, I still can't use it..
can I enforce both the checkout and the billing portal to ask for all necessary details?
how can i add billing information to that payment method?
also can't add any details here when adding a payment method from the billing porta
can I enforce both the checkout and the billing portal to ask for all necessary details?
I don't think so.
when I fill in anything i can, it still doesn't show up
but it doesn't give me the option to put in a billing address on the payment method
yes exactly, I don't think it's possible to use the customer portal and see the payment method displayed in the Checkout Session page. Unless you manually call the API to update the payment method to add the missing information.
ok, good to know. I guess I'll end up with doing the UI-work for the customer portal on our end then. too bad - would have been nice to use the hosted services
yes agreed! I can forward that feedback to the relevant team.
thank's a lot for the quick help