#cgy
1 messages · Page 1 of 1 (latest)
@scenic zenith Can you share the Payment Intent ID (pi_xxx)?
pm_1N62fcLDjQX4i1o15xbKFDf6
First I want to use SetupIntent, but when I see the docs, use paymentId and customerId and "off_session" can meet my request, so I didnt't use SetupIntent.
pi_3N62iXLDjQX4i1o10v65pd8Q
from your payment intent creation request: https://dashboard.stripe.com/test/logs/req_ANZkYwbRQr3BkM, the status is in requires_confirmation. If you wish to confirm the PI in the same creation request, you should set confirm to true to confirm in the same request: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm
Ok, let me check. Thank you
Just a reminder that it's strongly discouraged to create payment method with raw card information like https://dashboard.stripe.com/test/logs/req_2eHeOxcM6GOqzN
You should use Setup Intent (https://stripe.com/docs/payments/save-and-reuse) or Payment Intent (https://stripe.com/docs/payments/save-during-payment) directly
You mean I shouldn't create payment method on my server directly, use Stripe right? In this way can I collect card info in our system to show the card number or more details about the card ? And next time I don't want to collect card info again, it's that possible ?
You shouldn't use your own form to collect the card details and save them into your own database. It isn't compliant.
Payment Element should be used instead like the steps described here: https://stripe.com/docs/payments/save-during-payment
Oh, it's illeagle. But when I use WeChat(a little bit similar to Stripe), I can see card number like: 4242 ********* 5555. If I want to show card like this. It's possible?
After the card is saved to Stripe, you may use Payment Method Retrieval API to get the last 4 digit of the card and the expiry date which you can display to the customer: https://stripe.com/docs/api/payment_methods/object#payment_method_object-card
👍