#bbyford - PaymentIntents
1 messages · Page 1 of 1 (latest)
thanks
I have a saved card that im using with:
stripe.confirmCardPayment( paymentIntentId, {
payment_method: this.dataset.method,
}).then(..)
but i get an error saying to add thee customer to the intent object... unsure how to do this
I have the customer id too, just dont know how to attach
Gotcha
So when you create the paymentintent, you want to pass in the customer ID: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You could also update it and pass in the customer: https://stripe.com/docs/api/payment_intents/update#update_payment_intent-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
sweeeeeeeeet