Automate Billing Attempts Of Subscription Contract

hdonlinework
New Member
15 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 ???

0 Likes
jlalande
Shopify Staff
Shopify Staff
15 2 9

Hello @hdonlinework 

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...

0 Likes
eat_to_evolve
Excursionist
18 0 5

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.

0 Likes
hdonlinework
New Member
15 0 0

@eat_to_evolve 

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

0 Likes