#dennis_de

1 messages · Page 1 of 1 (latest)

flint vergeBOT
runic oar
#

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.

fallow elm
#

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?

runic oar
#

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

fallow elm
#

Ah Ok, so he takes it in relation to a previous checkout and not on the customer object itself?

#

In other words, if I create a customer manually and query the billing address in our wizard and send it to Checkout, I would have to transfer the information myself. Okay.