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

Adding Subscription options to buy button #877

Open
fredericbrass opened this issue Nov 22, 2024 · 2 comments
Open

Adding Subscription options to buy button #877

fredericbrass opened this issue Nov 22, 2024 · 2 comments

Comments

@fredericbrass
Copy link

Has anyone managed to hook up subscription/selling plan to the buy button? My current client uses this buy-button and wants to add in subscription functionality to his store, I have access to the selling plans he has created in the app, but can't find any documentation if this is possible using this SDK

@rplakas
Copy link

rplakas commented Nov 22, 2024

Not via Buy Button, but was able to do a direct checkout link using this format: yourdomain.com/cart/add?id=58698890977473&selling_plan=3163422912

It's been a while and I forget exactly how I found the selling plan id, think I needed to use browser debug.

@fredericbrass
Copy link
Author

@rplakas Thanks for the reply!

I ended up removing this package, and rebuilding the cart functionality using the hydrogen-react package which actually turned out pretty easy as selling plans are included in AddToCart and Checkout functionality!

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

No branches or pull requests

2 participants