I am developing custom subscription app, created selling plan groups, selling plans, associated products to the plan and generated sample order. the issue arises in automating the order process as the next billing date arrives there is no new order for the subscription. some information regarding the app:
app is created through shopify cli using PHP template.
API version is 2023-07
enabled shopify payments test mode
as in the shopify docs its mentioned that if selling plan product is purchased through checkout shopify itself generates a contract and shares it through webhook so I skipped the contract creation step which is mentioned in shopify docs. doc link
I am confused with the contracts, can someone please give me a brief understanding of it, like should we create contract through GraphQL even when shopify is created one, and if selling plan gets updated should the previous contract also deserve an update or only the active one.
have one more question, if I should generate the contract my self then what is the purpose of shopify generated contract and then what is the need of using shopify subscription API