#jcrypt - Checkout redirect

1 messages ยท Page 1 of 1 (latest)

viral hazel
#

Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐Ÿ™‚

#

Hey there, what do you mean by not loading?

wet monolith
#

I can send a pic...it goes to the stripe site with all the fields gray and sits and never errors....will send pic

#

Thanks, will go do some work and will be back....very interested in your thoughts.

viral hazel
#

Are you seeing any console or network errors in your developer tools panels?

#

Can you share the details of those if so?

#

Do you have a public site we can access to try this ourselves?

wet monolith
#

The error is the iframe error

#

Stripe Checkout is not able to run in an iFrame. Please redirect to Checkout at the top level.

#

It all works locally

#

For now the link to the shop is on the front page.

unkempt maple
#

Ah, so you need to do a normal redirect instead of rendering in an i-frame.

#

P.s. hello ๐Ÿ‘‹ I'm taking over for synthrider

wet monolith
#

Hi two shoes.....any thoughts on how I should do this....because it works locally, was thinking it had something to do with nginx as I can't go ruralinternetshop.us/shop...I wasn't in an iframe or I didn't think I was during development....Its a flask app wsgi is there a different way of redirecting instead of using the return redirect(checkout_session.url, code=303) in my route of the link...any small examples of how you would handle it then maybe I can figure the rest?

unkempt maple
#

That's really odd. Regular Flask shouldn't be rendering in i-frames without explicitly doing something the make it. A regular redirect won't create an i-frame as far as I know.

#

Are you able to step through your code and check each function call in the route to see where this is happening? It's hard for me to help debug without access to your code

wet monolith
#

I'm really leaning to how the reverse proxy nginx config....but I don't mind you having access, just don't want you doing it for me....I appreciate your help and don't want to wear out my welcome by being needy

unkempt maple
#

It's all good! I couldn't really debug nginx for you anyway, but I might be able to help troubleshoot if it were the code that was causing the issue. Just let me know if you get blocked and (if you do) post the relevant code to the thread and I'll see if anything stands out to me.

wet monolith
#

I'm trying a couple of things...I'll try to break some stuff, and message back