#dennis_de
1 messages · Page 1 of 1 (latest)
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#handling-existing-customers
Yes, that's supported under certain conditions
Note also:
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.
The billing information is set in the customer, a new checkout has been generated but it is still not filled in. Hmm.
Test Customer: cus_P1IosT9pPnId3b
Test Checkout Session Id: cs_test_b16lJPIk4ERZ48ADFohcSEg6AcPChJICW9yEcx1YWmTHin4rG212IGwiPd
In the response from stripe:
"address" => null
"email" => "xxx@xxx.com"
"name" => null
"phone" => null
"tax_exempt" => "none"
"tax_ids" => null
]```
Mode is Subscription, we only set "customer" with the ID of the customer and "billing_address_collection" to "required"
But why are the customer_details empty?
"billing_address_collection" does not change anything, so whether required or I leave it out does not change anything.
@runic oar Do you have any other idea what the problem could be?
I don't off the top of my head no -- give a minute to ask someone else
Oh, right:
The Checkout page requires a valid billing address, billing name, and billing email address to prefill the customer’s card details.
This only prefills the card for a subscription if you've already provided a complete billing address for the PM
and this customer has no attached PMs that I can see
so there is nothing to prefill here