#ashtray-wasp_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/1308731388752695336
π Have more to share? Add more details, code, screenshots, videos, etc. below.
π happy to help
could you try
{
payment_method: "pm_1QJdIBF9R6Nkg8pofOT9znbz",
off_session: true,
}
instead of your current request body??
Checking that
You cannot confirm with
off_session=truewhensetup_future_usageis also set on the PaymentIntent. The customer needs to be on-session to perform the steps which may be required to set up the PaymentMethod for future usage. Please confirm this PaymentIntent with your customer on-session.
req_R5qL5oBQ3UnqS1
this is because you've already created the PaymentIntent with setup_future_usage
which you shouldn't do when you want to charge an existing payment method
try to create a new PaymentIntent
this time don't set setup_future_usage
This payment intent was created along with a subscription βΒ is there any way I can prevent setup_future_usage being set?
oh this is the PaymentIntent of the subscription?
yes
the latest_invoice.payment_intent
in that case you should pass default_payment_method when you create the subscription
instead of trying to confirm the subscription's latest_invoice.payment_intent
I'm trying that out
Woah, it worked! So my setup was overly complicated for no reason. Thanks a lot!
at first I thought you were only creating a one-off payment (using the PaymentIntent) after saving the ACSS on a subscription
but for subsequent subscriptions you don't need to do all of that π
I'm glad we've got to resolve this
Yeah, I had one-off payments figured out but got confused about subscriptions π
Thanks for your time
sure let me know if you need any more help
I think I'm fine from now on, thanks