Hello guys,
How can I test the Billing Api Before App Approval (before the request for review and going live on the Shopify store)? Thanks!
Topic summary
Topic: How to test Shopify Billing API before app approval and going live.
Key guidance:
- Set “test”: true when creating an Application Charge to prevent the credit card from being charged; test and demo shops cannot be charged. When going live, change the parameter to “test”: null per the API docs.
- Documentation links were provided for Application Charge and Recurring Application Charge (subscriptions).
Applicability:
- The same “test” flag works for Subscription charges (Recurring Application Charges) as well.
- Even if the flag is set incorrectly, test/demo shops cannot be charged.
Notes:
- The discussion references Shopify Admin REST API (2022-01) docs for implementation details.
- Terms: “Application Charge” is a one-time charge; “Recurring Application Charge” is subscription-based billing.
Outcome & status:
- A clear testing approach was confirmed (use “test”: true); going-live guidance given (use “test”: null). The question appears resolved with no further open issues.
https://shopify.dev/api/admin-rest/2022-01/resources/applicationcharge#top
For testing purposes you can include “test”: true when creating the charge. This prevents the credit card from being charged. Test shops and demo shops can’t be charged.
When going live, change it to
“test”: null
(https://shopify.dev/api/admin-rest/2022-01/resources/applicationcharge#resource_object)
- @LetterT *Thank you! Does it also work for Subscription charges (recurring)?
If you mean this
https://shopify.dev/api/admin-rest/2022-01/resources/recurringapplicationcharge#top
(which I think you do …), yes it works too.
Even if you get the flag incorrect:
Test shops and demo shops cannot be charged.
but I’m not responsible if you get charged ![]()