#nichemedia_code
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/1319334129065656431
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Hey
Are you setting use_stripe_sdk when you create/confirm your PaymentIntent: https://docs.stripe.com/api/payment_intents/create#create_payment_intent-use_stripe_sdk ?
If not, then it will always respond with redirect_to_url
As that indicates you want to handle the redirect yourself
I actually don't have a setup where I do that.
Currently I only use stripe payment links to create the trials (they then become paid after 7 days OR when the user upgrades early in the modal). The code looks for any invoices that are in the right state and then attempts to charge the card.
I am not sure why the customer's card did this - but I can see in the payment intent it was a "link" decline. Would that trigger the use_sdk where a normal 3DS wouldn't?
Just to confirm - I do not use any stripe checkout or anything where I set the paymentintent - it is whatever happens on the no-code payment links
Ah, yes, that could trigger that response. However, with Payment Links you shouldn't need to do anything here -- it is all handled client-side for you within the Checkout Session.
Ah - because I don't actually use stripe checkout at all. The only instance of stripe code in my app is the modal to 1-click upgrade from a trial (that was created using a no code payment link)
however
maybe I do need to create a payment intent during that flow
Hmm yeah I'm a bit confused then... can you share an example PaymentIntent here?
Sorry - it's all very confusing to me
It sounds like actually you are confirming a Subscription's Invoice's PaymentIntent
And handling that part
Yeah that's right
But yeah, can you share the specific example PaymentIntent?
Then I can see exactly what is going on
Thanks, looking
Interesting, okay yeah you are confirming server-side here and not passing use_stripe_sdk: true so I would have expected it to return a redirect_to_url next action... this may indeed be unique to Link. Give me a few minutes to dig into that.
Thanks so much
Still looking but so far this does look like a bug to me. I'll circle back in a bit.
No worries at all. Thanks for your help
Hi there ๐ we do believe this is is a bug and have flagged it to the appropriate team. If you're interested in receiving updates about that, please see the DM I'm about to have one of our bots send you to open a support case to receive those updates in.