#binayak - PaymentIntent
1 messages · Page 1 of 1 (latest)
Hi there!
Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
sure, it is: req_AjEiZExPCbrdF6
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.
You can follow this documentation to accept a payment with Stripe: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
how to add payment method please advice
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?
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',
});
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.
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.
sure let me try and confirm