#surbh_api

1 messages ¡ Page 1 of 1 (latest)

rugged shoalBOT
#

👋 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.

flint horizon
#

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.

pearl current
flint horizon
#

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

pearl current
#

Yes you should be able to reuse the PaymentIntent if you set it previously for re-use on off_sesison