#anna_best-practices

1 messages · Page 1 of 1 (latest)

wild egretBOT
#

đź‘‹ 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.

marsh rover
#

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)

swift echo
#

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."

marsh rover
#

Yeah but that's not mentioning Checkout Session

wild egretBOT
wild egretBOT
native oyster
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

swift echo
#

Hey! We set saved_payment_method_options.allow_redisplay_filters = ['always', 'limited','unspecified'] as well, but the default payment method is still not displayed

native oyster
#

Taking a look now

#

It's because the PM (pm_1RiWr4AFxlGPwjh5XNPUdhhu) is missing some billing fields that Checkout requires:

The payment method includes billing_details required by the Checkout Session’s billing_address_collection value:

  • auto requires values for email, name, and address[country]. US, CA, and GB billing addresses also require address[postal_code].
  • required requires values for email, name, and all address fields.