#eytan
1 messages · Page 1 of 1 (latest)
Yeah, not having card is normal because we don't allow you to create Card PaymentMethods directly (we don't want you passing us raw PANs as a general rule)
Are you using a PM that's already been created? Are you trying to collect and confirm a new PaymentIntent that's creating a new PM?
Ok
I create a new PaymentIntent and I want to save directly the billing data
But how are you creating the PM? Are you going to collect it client-side using PaymentElement?
And are billing details something you want to be setting server-side or client-side?
Doesn't matter for me
You should be able to set it client-side when you confirm the PI (https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details) - that way it'll create the Card PaymentMethod with the details from the PaymentElement and add those billing details to the created PM