Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use fullpage redirect for billing in embedded apps #1578

Merged
merged 6 commits into from
Apr 13, 2023

Conversation

kirillplatonov
Copy link
Contributor

What this PR does

The use of redirect_to in embedded apps causes an infinite redirect. We need to use fullpage_redirect_to method instead.

Checklist

Before submitting the PR, please consider if any of the following are needed:

  • Update CHANGELOG.md if the changes would impact users
  • Update README.md, if appropriate.
  • Update any relevant pages in /docs, if necessary
  • For security fixes, the Disclosure Policy must be followed.

@kirillplatonov
Copy link
Contributor Author

@andyw8
Copy link
Contributor

andyw8 commented Nov 23, 2022

Thanks for this contribution @kirillplatonov. We'll do some testing to verify it but it makes sense.

@kirillplatonov
Copy link
Contributor Author

@andyw8 sounds good. Thanks for the review! Let me know if any changes are needed.

@klenotiw
Copy link
Contributor

klenotiw commented Dec 8, 2022

Hello, sorry for the delay on the review! I couldn't figure out how to reproduce the infinite redirect. Could you post some instructions? Thanks for your time!

@kirillplatonov
Copy link
Contributor Author

Hi @klenotiw,
You can reproduce it using Shopify Hotwire Sample repo. We have a dedicated branch with turned on billing:
https://github.com/kirillplatonov/shopify-hotwire-sample/tree/billing

  1. Clone the repo: https://github.com/kirillplatonov/shopify-hotwire-sample
  2. Switch to billing branch
  3. Follow steps from Quick start guide to set things up: https://github.com/kirillplatonov/shopify-hotwire-sample/tree/billing#quick-start

I hope it will be sufficient. Please let me know if you'll need more information.

@kirillplatonov
Copy link
Contributor Author

@klenotiw any update on that?

@nelsonwittwer nelsonwittwer merged commit b619314 into Shopify:main Apr 13, 2023
@kirillplatonov kirillplatonov deleted the billing-embedded branch October 11, 2023 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants