#usama-paymentelement-redirect
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Are you setting custom parameters and not seeing those or expecting something set by Stripe?
I would expect your payment intent ID to be included in the query parameters
No When I use payment intent I get the parameters of payment intent ID and payment status in the url query but when I use the payment intent form a subscription object I don't get that info in the url query anymore.
I should be redirected to something like http://localhost:8000/user/subscription/payment-stauts?payment-intent-id=xxxxxxxx&status=xxxx
but I only get my url (http://localhost:8000/user/subscription/payment-stauts) and no query parameters are included in it.
Do your confirmPayment calls for those two cases use the same code?
Yes, I use the same confirmPayment code for normal payment intent and the payment intent of subscription
So what can be the issue. Can you let me know?
usama-paymentelement-redirect
@pearl lintel and the exact same code works fine for a normal PaymentIntent?
Yes, I have been using it for last 1 year and this never happened with normal intents using this code
What payment method type are you using? card or something else?
card
Can you share an example PaymentIntent id?
@pearl lintel I tried locally on my end and it works fine for me at least
Sure let me share the intentId
@chilly knoll Here is the intent id for last call I did: pi_3OMXgbBs7DpMc7pY1sveelkm
Which test card are you using?
ah it seems to be the 4242. I really can't reproduce and neither can my colleague, for us it works totally fine so we're going to need to see an example page
Oh ok. Well for now I have stopped relaying on query parameters for the redirect page after subscription. Since I'm already verifying the payment using webhooks so I'm dispatching the emails already from there. Thanks for the help
sure thing
I think I know why I'm not getting the query parameters. When payment is made I get redirected to return url page but I didn't not received any payment success event on webhooks against the intent. I'm trying to figure out now why this is happening. Will let you know If I need anymore help