#amirbabikir
1 messages · Page 1 of 1 (latest)
Hello 👋
Once a payment method has been tokenized, there's no way for anyone to decrypt it
So $existing_payment_method->card->number won't really work in this case.
thanks you hanzo for your reply.
is there anyway to create a new payment intent based on data from existing pi?
Unfortunately, no. You'd need to create a SetupIntent or a PaymentIntent with setup_future_usage & recollect the PaymentMethod
It is because you're using a third-party plugin. If this was your own integration, you'd only need to add setup_future_usage to your create PaymentIntent code.
yes, that is the problem. They don't have that feature yet.
One option I can think of is that you can create a SetupIntent and confirm it server-side using the API and provide the existing payment_method ID
https://stripe.com/docs/api/setup_intents/confirm
In this case though, issuers can trigger 3DS which you'd need to handle by bringing your customer back on-session and complete 3DS
that will not work for my case. We sell credit points for voip calling and we wanted to add a feature that the customer balance will automatically be topped-up when it falls below a specific limit. so that the call will not be disconnected
will think about starting my own integration if the third party cannot add this feature soon.
Any guidance on php example and how to create checkout forms ? is there ready forms from stripe that i can just call?
We have a pretty great doc here to get started
https://stripe.com/docs/payments/accept-a-payment
thanks , will check it