#binayak - PaymentIntent

1 messages · Page 1 of 1 (latest)

drifting plover
#

Hi there!

civic frigate
#

sure, it is: req_AjEiZExPCbrdF6

drifting plover
#

The status of the PI is requires_payment_method, so it's expected that you can't capture the funds.

#

You first need to collect the payment method information.

civic frigate
#

how to add payment method please advice

hard lake
#

Hi 👋 I'm jumping in as my teammate needs to step away soon. In your flow, have you already collected payment method information from your customer and created a Payment Method with that which you want to use for this payment, or do you still need to collect those payment method details?

civic frigate
#

shall I send you the request body?

#

try {
const stripe = require('stripe')('sk_test_%$^%^%$^^$Ku0Qu1zxDKH3in007t6jQqsQ');
const paymentIntent = await stripe.paymentIntents.create({
amount: amount,
currency: currency,
payment_method_types: ['card'],
capture_method: 'manual',
});

hard lake
#

No need, you can just tell me whether you've already created a payment method.

#

From that request, it doesn't look like you're passing a Payment Method.

civic frigate
#

please assist

#

please suggest modification

hard lake
#

You should review and follow the guide that my teammate shared previously, it walks through the full process of creating a Payment Intent, collecting Payment Method details, and confirming the payment.

civic frigate
#

sure let me try and confirm