gnikyt / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
1.24k stars 374 forks source link

Multiple Billing Plans Not Working #524

Closed punitchawla19 closed 4 years ago

punitchawla19 commented 4 years ago

Hello,

I'm trying to create 2 or more plans on plans database table. After that I'm charge the billing app, Show only first plan of database plan table.

Please let me know how it works with multiple billing plans?

Thanks!!

Kyon147 commented 4 years ago

You just create additional plans as you want and then call them by their ID, you can see it in the wiki here: https://github.com/osiset/laravel-shopify/wiki/Creating-a-Billable-App

punitchawla19 commented 4 years ago

I have already created 2 plans but works with one only. Not show the selection of plan when I am installing it.

On Sun, Jul 12, 2020, 12:42 AM Luke Walsh notifications@github.com wrote:

Closed #524 https://github.com/osiset/laravel-shopify/issues/524.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/osiset/laravel-shopify/issues/524#event-3536525168, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMR7MND4JHSLN5ROQZLVWQLR3C2RNANCNFSM4OXJGDKA .

gnikyt commented 4 years ago

@punitchawla19 If your package is setup with billing enabled and you have a default plan, it will show.

If you want to list plans, you will need to custom implement this.

I suggest enabling freemium option in config, and if the user is freemium ($shop->isFreemium()), then show a list of plans, and allow them to select one.

punitchawla19 commented 4 years ago

Ok, Thanks!!

On Wed, Jul 15, 2020 at 12:22 AM Tyler King notifications@github.com wrote:

@punitchawla19 https://github.com/punitchawla19 If your package is setup with billing enabled and you have a default plan, it will show.

If you want to list plans, you will need to custom implement this.

I suggest enabling freemium option in config, and if the user is freemium ( $shop->isFreemium()), then show a list of plans, and allow them to select one.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/osiset/laravel-shopify/issues/524#issuecomment-658351759, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMR7MNG2TBCFQ7KFLBEIJWTR3SSOLANCNFSM4OXJGDKA .

--

Regards

Punit Chawla Sr. Web Developer Mobile No: 9802220467