#Constant
1 messages · Page 1 of 1 (latest)
Hi there, can you share with me the paymentIntent ID?
I can't seem to get the id. Can I share the requestID?
Sure
Thanks: req_kY3JxVMtengXR1
Hey! Taking over for my colleague. Let me catch up.
Hey! Thank you. Appreciate the help.
You are creating a PaymentIntent with confirm:true, you need to pass the payment method Id that you'll be charing the customer from.
The error message looks like enough explicit:
You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method.
You need to check your nodeJs code, that is sending well the PaymentMethod
As I understood, I'm confirming the paymentIntent when it's created.
const paymentIntent = await stripe.paymentIntents.create({ amount: connectAccounts.length * 100, currency: "aud",
transfer_group: "{ORDER10}", payment_method_types: ["card"], confirm: true, });
Am I missing something?
yes you are missing the payemnt_method param:
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method
for your test you can use pm_card_visa for example:
https://stripe.com/docs/testing#test-code
Ah thank you! So I'll need to have a payment_method already for the customer?
yes,
What if it's the customer's first time making a payment and they don't yet have a payment_method?
then you don't set the confirm:true parameter
Perfect! Thanks again.
Np!