#Barry Allen-payment-billing
1 messages · Page 1 of 1 (latest)
The billing details would live on the Payment Method, so that's where you would want to set them
https://stripe.com/docs/api/payment_methods/object#payment_method_object-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.
Yes but if I make a payment intent, there is no payment method until the payment has gone through. That is because I'm using the payment element to confirm the payment intent.
Do I have to make a payment method before creating a payment intent?
What do you need the billing details for specifically?
I have the payment element and a custom billing address form. I want to link the billing address to the payment intent for verification purposes.
If you're just using it for your own internal system, you could add that as metadata to the Payment Intent: https://stripe.com/docs/api/payment_intents/create?lang=ruby#create_payment_intent-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Does that suit your needs?
Does stripe not use billing address for verification?
We do, but like I said it gets set on the Payment Method. If you're using the Payment Element successfully, then somewhere in the checkout flow you're already asking your customers for billing address
Yes but how do I set the billing address?
Do I have to make a payment method before the payment intent. Do I have to update the payment method after the payment is complete? Do I update the payment intent itself?
I know I can set the customer's billing address on the account level. I just don't know how to do it on the credit card level with payment elements.
I would recommend taking a look at the steps here, if you're just trying to figure out how to get the billing details on the Payment Method. It automatically asks the customer for their billing details via an i-frame when your customer selects what type of payment method they want to use: https://stripe.com/docs/payments/quickstart
Oh that makes sense. The problem is that I want to do it for credit cards. I don’t think it pops up with anything for credit cards.