#NewtReyes - Billing Info
1 messages ยท Page 1 of 1 (latest)
Hi ๐ sorry for the delay. Lots of people came in at the same time
What kind of billing info are you looking for?
Ex. charge.billing_details.address.city
Where's that billing_details information coming from?
Is that coming from the customer information?
Can it be overwritten?
When this is captured it is comming from the customer. How are these PIs being generated?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Using that API
Okay and how does the user enter their payment info?
Customer is created the first time the client pays for something.
then reused
customer id is added to the payment intent when getting created
Sorry just saw this follow up - give me a minute and I can take a look
I believe billing_details on the Charge will be pullled from the Payment Method that is used to pay for the Payment Intent. So for example, if you collect card information through the card element, yolu wouold confirm the Payment Intent client-side with stripe.js (calling stripe.confirmCardPayment), and you'd pass in payment_method.billing_details (see https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-data-payment_method)
So if you are reusing the payment method, then the data will come from that payment method.
Interesting
Yup, if you're reusing the Payment Method it should use whatever billing details are already saved on it
Any way to overwrite those when using payment intents?
Hey there ๐
Taking over for karbi here as they had to step away
Any way to overwrite those when using payment intents?
do you mean overwrite these when you create a new PaymentIntent?
Yes
I don't think that's supported by the PaymentIntent API
Got it