#gagan.suie

1 messages · Page 1 of 1 (latest)

quick oliveBOT
eternal wind
#

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

golden zenith
#

Hi there, OK so it's about pricing table

eternal wind
#

yes

golden zenith
#

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?

eternal wind
#

it says i need to enable allow-top-navigation

#

thats what the docs say

golden zenith
#

Are you embedding the pricing table inside another iframe?

eternal wind
#

no

golden zenith
#

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?

eternal wind
#

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

golden zenith
#

This is a checkout page, what do you ean by "not on checkout" ?

eternal wind
#

there are several pages in the checkout flow that do not have a way to navigate back

#

/p/login
/p/session

golden zenith
eternal wind
#

where do i set that using pricingtable?

golden zenith
#

No this param is not available in pricing-table, but you can set a custom message as I mentioned earlier.

eternal wind
#

i see completes purchase >> returns to your website

golden zenith
#

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.

eternal wind
#

my scneario is not returning to the website. im about to deploy it to a test environment and we can test from there.

quick oliveBOT
fiery sinew
#

👋 hopping in here since jack had to head out

eternal wind
#

no problemo! thanks jack

fiery sinew
#

Can you clarify what you meant when you said "i see the back button on this page. but not on checkout"?

eternal wind
#

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

fiery sinew
#

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?

eternal wind
#

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

fiery sinew
#

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

eternal wind
#

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

fiery sinew
#

Can you be specific? Which email link are you talking about? Are these customer portal login links? Or something else?

eternal wind
fiery sinew
#

Ah, so you're talking about the customer portal

eternal wind
#

that worked great! thank you!