Automate Billing Attempts Of Subscription Contract

HD_WORK
New Member
20 0 0

I have build an subscription app, every thing is working fine

customer can purchase subscription plan and app receives the contract, using create billing attempt mutation i can create billing attempt and create order but i want to automate this process

can anyone help me in this ???

Replies 3 (3)

jlalande
Shopify Staff (Retired)
19 4 13

Hello @HD_WORK 👋

Thanks for reaching out. Shopify does not offer a mechanism to schedule and automate this process. The scheduling and the automation of billing attempts is the responsibility of the app developers. See: https://shopify.dev/tutorials/shopify-subscriptions-overview#division-of-responsibilities-between-sh...

To learn more visit the Shopify Help Center or the Community Blog.

eat_to_evolve
Excursionist
18 0 9

You need to run a recurring cron job that iterates through your subscriptions, check which ones are active & equal to or past the next billing date, and then call the charge subscription mutation.

HD_WORK
New Member
20 0 0

@eat_to_evolve 

can you guide me how can i setup cron job/schedular. i am using core php and mysql