#Tirth Joshi
1 messages ยท Page 1 of 1 (latest)
Hi! Let me help you with this.
It's expected. You need a Payment Method to complete the payment.
Does the customer have an existing Payment Method? Or you want to collect a new one?
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
yes
after addd it shows "status": "requires_confirmation",
"status": "requires_confirmation",
for
payment_intent = stripe.PaymentIntent.create(
amount=amount,
currency="eur",
customer=customer,
payment_method="pm_1NDl1SBtfsdMpbTVMB9beTnV",
)
in where?
payment_intent = stripe.PaymentIntent.create(
amount=amount,
currency="eur",
customer=customer,
payment_method="pm_1NDl1SBtfsdMpbTVMB9beTnV",
confirm=true
)
and if you've already created the PaymentIntent without this parameter
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
to confirm an already existing one
it give
"Your card was declined. Your request was in test mode, but used a non test (live) card. For a list of valid test cards, visit: https://stripe.com/docs/testing.
you can't use normal cards
only the ones specified in https://stripe.com/docs/testing can be used in test mode
payment_intent.payment_failed
above event give a extra meaasge or reason
than payment_intent.succeeded
do you mean the decline reason?
it's described here https://stripe.com/docs/payments/payment-intents/verifying-status#webhooks
const message = intent.last_payment_error && intent.last_payment_error.message;