#Giriraj
1 messages · Page 1 of 1 (latest)
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Oh wait, it's not an error from your API request. What's the bps_xxx ID?
I am, please be patient
ok no problem
👋 taking over for my colleague. Let me catch up.
hi
ok plz look above my issue
here is my code which is i have followed by above link
yes please give me a couple of minutes to be able to look into your issue
ok no issue
so first things first
ok ok
why are you using POST?
so, which method should i need to use?
so basically what you're doing is instead of redirecting to the session URL you're posting to it
try it with GET
or window.location.href = session.url
ok let me try 1 min
as a button click event rather than a form submit
take your time
is there any link?
i m follow this link for Form submit https://stripe.com/docs/customer-management/integrate-customer-portal#redirect
in the link you sent the action is /create-customer-portal-session
it seems in your code that you are generating the session first
then submitting it with this form
yes one of the ways to do it
ok sure will remove
but how are you creating the session?
thanks for guide
would you mind sharing the code?
why are you creating the portal on the component load?
oh you mean when someone click on manage billing button that time i need to load above right?
yes
oh nice yes will follow same
and one last thing
you can do a redirection from your backend code
if you don't want to open a new tab on the front end
ok will remove it. for now not needed
something like this
but instead of checkout session
you're creating a billing portal session
ok sure. if i need will follow your guidence
got it
let me know if you need any more help