#anna_best-practices
1 messages · Page 1 of 1 (latest)
đź‘‹ Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đź”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1392062961685627011
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- anna_api, 3 days ago, 11 messages
Hi
and according to the documentation, Checkout should use it
Could you please share the reference of this please ?
Do you have an example of a Customer Id and a recent Checkout Session Id (not expired)
Hi! The recent case in the testing mode: customerId: cus_SdoN1dpduOvraU , requestId: req_W9B8GWccx4B5sA and checkoutId = "cs_test_a1J8lWzxenEm7c8Al04gRraYuHl3s0FxPUryURIuP5etxhlok9OzDi7mXH"
I shared the links before, but this is the reference on the update customer "invoice_settings.default_payment_method
string
ID of a payment method that’s attached to the customer, to be used as the customer’s default payment method for subscriptions and invoices."
Yeah but that's not mentioning Checkout Session
But in order to display saved PaymentMethods when creating a Checkout Session:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-saved_payment_method_options-allow_redisplay_filters
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Hey! We set saved_payment_method_options.allow_redisplay_filters = ['always', 'limited','unspecified'] as well, but the default payment method is still not displayed
Taking a look now
It's because the PM (pm_1RiWr4AFxlGPwjh5XNPUdhhu) is missing some billing fields that Checkout requires:
The payment method includes
billing_detailsrequired by the Checkout Session’sbilling_address_collectionvalue:
autorequires values for email, name, and address[country]. US, CA, and GB billing addresses also require address[postal_code].requiredrequires values for email, name, and all address fields.
Looks like the PM was created via Payment Element, which doesn't collect those fields: https://dashboard.stripe.com/test/logs/req_TAA6FjTiJI7sjO
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.