#surbh_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1334840787615092827
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
After that we passed below request:
$newPaymentIntent = $stripe->paymentIntents->create([
'amount' => '576',
'currency' => 'usd',
'payment_method' => 'pm_xxxx',
'setup_future_usage' => 'off_session',
'off_session' => true,
'automatic_payment_methods' => ['enabled' => true,
'allow_redirects' => 'never'],
'confirm' => "true",
]);
We are getting below error:
This PaymentMethod was previously used without being attached to a Customer or was detached from a Customer, and may not be used again.
But we have already attached payment method to customer but still we are getting above error.
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
We have called the payment intent APIs using curl request in our codebase. Just need to know is stripe support the reauthorization or we can reuse the existing order payment method "pm_XXX" to create new order from same payment method "pm_XXX". As in our requirement customer can edit the placed order, with new details
Yes you should be able to reuse the PaymentIntent if you set it previously for re-use on off_sesison
Here is a complete guide on how to accept a payment for the first time and save the PaymentMethod for future usage:
https://docs.stripe.com/payments/save-during-payment