#Namrata
1 messages · Page 1 of 1 (latest)
i want to stored card information in my custom database after payment success
You can/should only store non-sensitive card information. Is that what you want to do?
Sure that should be possible
After Payment succeeded you find the PaymentMethod Id (pm_xxx). Then you can retrieve it to have last4
like this pm_1L3DBFKz8WXEqDYJuuY45Q7U
means pass this PaymentMethod Id to backend then find the card details is it correct
Yes!
You can use Retrieve Payment Method API https://stripe.com/docs/api/payment_methods/retrieve from backend
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
let me try it
is payment intent handle all exception
suppose i pass negative amount to payament intent it will handle such type of payment
how to handle that error