#gagan.suie
1 messages · Page 1 of 1 (latest)
hi jack
im using this component:
`<stripe-pricing-table
pricing-table-id="prctbl_1NbAbPGCjE5yZMc3D6mOSbxd"
publishable-key="pk_test_zNzh2o1OkU21yGQAhUW6W0Yp00Z19jXMyA"
client-reference-id={$page.data.user?.userId}
allow-top-navigation="false" />`
and i tried setting the allow-top-navigation to true
i can navigate back before checkout. but not after checkout
Hi there, OK so it's about pricing table
yes
I don't see an option to set a redirect URL, but you can set a custom message
But based on the error message that you posted earlier, it looks like you can't even open the Checkout page from Pricing table, am I right?
Are you embedding the pricing table inside another iframe?
no
OK, allow-top-navigation is not an attribute that you need to set in a pricing-table. Looks like your website provider may have set something tha could impact it, Have you contacted your webiste provider?
what is a website provider? i built the website myself using svelteKit and im hosting it in cloudflare pages
i see the back button on this page. but not on checkout
This is a checkout page, what do you ean by "not on checkout" ?
there are several pages in the checkout flow that do not have a way to navigate back
/p/login
/p/session
The back button will be shown if you set a cancel_url https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-cancel_url
where do i set that using pricingtable?
No this param is not available in pricing-table, but you can set a custom message as I mentioned earlier.
Yes it returns to your website, i.e., the page where the pricing table is embeded. You can't set a returnURL to return to a different website.
my scneario is not returning to the website. im about to deploy it to a test environment and we can test from there.
👋 hopping in here since jack had to head out
no problemo! thanks jack
Can you clarify what you meant when you said "i see the back button on this page. but not on checkout"?
when you click subscribe, it takes you to the initial page to setup your payment method
that page had a back button
subsequent pages and final page (which i called checkout but i guess is the confirmation page) did not have the back button
Gotcha - so right now your pricing table flow is setting the "custom message" and you want to be able to have a "Back" button on that page?
i am not using a custom message
i have the default message (because i like the animation lol). but it is not navigating back automatically.
and theres no way to navigate back either
If you're using the confirmation page that stripe provides I can flag it as feedback that you'd also like to see a back button there, but I don't think it's currently supported right now
the other issue is when stripe sends an email link to login
it creates a new session when you click login in the email
so the user no longer has a way to go back to the product website
Can you be specific? Which email link are you talking about? Are these customer portal login links? Or something else?
Ah, so you're talking about the customer portal
Did you add a redirect URL to your business information settings for the customer portal? https://dashboard.stripe.com/test/settings/billing/portal
that worked great! thank you!