#Gatubel
1 messages · Page 1 of 1 (latest)
Where are you passing that url to get that error?
What request are you making when that happens?
I'm doing a redirect request from my Chrome extension options page to go to the Stripe page but this doesn't redirect here
I have a node backend and throws me this error
Hi.. as Gatubel mentions, we are both facing this problem
I will describe our problem a little more
We are currently developing a chrome extension with react, now we are working on the payment module, we add the redirection to the stripe payment form from the extension with success, but after making the payment or canceling the payment (success_url, cancel_url), we have an invalid_url error for the urls we are using
This is the local development url of the extension:
"chrome-extension://lglpbjaeknfjbccebledblghgbelkgkc/options.html"
Is there a way to solve this problem? or a more suitable way to integrate stripe in chrome extension? If so, could you provide us with relevant documentation on this?
I think this just isn't possible. Pretty sure it needs to be an http or https url.
Let me check with colleagues though and get back to you
Can you paste the request id where you're getting the error?
Looks like req_123
That will help me look to see exactly what you're doing
req_golObhVKJCgXIf?t=1682450281
Ah ok thanks
Yeah unfortunately this isn't possible
Checkout always expects the url to be http:// or https://
So you'll need some hosted page to redirect the customer to
ok, in that case, what would be the best way or the best alternative to implement stripe in a chrome extension?
You could still redirect to checkout from the extension. You'll just need to have a hosted page for the success and cancel urls
yeah its a good idea, we try this, if everythink here is ok