#Constant

1 messages · Page 1 of 1 (latest)

slim tinselBOT
vital mural
#

Hi there, can you share with me the paymentIntent ID?

marsh mulch
#

I can't seem to get the id. Can I share the requestID?

vital mural
#

Sure

marsh mulch
#

Thanks: req_kY3JxVMtengXR1

vapid basalt
#

Hey! Taking over for my colleague. Let me catch up.

marsh mulch
#

Hey! Thank you. Appreciate the help.

vapid basalt
#

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

marsh mulch
#

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?

vapid basalt
marsh mulch
#

Ah thank you! So I'll need to have a payment_method already for the customer?

vapid basalt
#

yes,

marsh mulch
#

What if it's the customer's first time making a payment and they don't yet have a payment_method?

vapid basalt
#

then you don't set the confirm:true parameter

marsh mulch
#

Perfect! Thanks again.

vapid basalt
#

Np!