#Gasper
1 messages · Page 1 of 1 (latest)
Hi there, https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer the doc says the customer’s most recent card payment method will be used to prefill the email, name, card details, and billing address on the Checkout page
It doesn't mean that these info are required for prefill.
and it also says:
A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer’s card details.
while I was testing this I needed to update billing address details before payment method was prefiled
That's in subscription mode.
yes for subscription mode, sorry if I was a bit unclear above
Ah sorry I must miss out this.
Yes you can use the API to update the payment method's billing_details (https://stripe.com/docs/api/payment_methods/update#update_payment_method-billing_details)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
as I said we have customer billing address details which we can use to update their billing detail information on stripe using api as you suggested
Our address data is not clean - specifically, we do not have zip/postcodes stored as separate fields and sometimes data is missing, so we are thinking of filling it with geocoded zip/postcodes. Will this work? We are worried that attaching a potentially unmatching zip code to a payment method might make the method invalid or cause issues in charging the method?
@eternal breach still here? 🙂
Thanks for waiting, discord is busy today