A place to discuss charging merchants for your apps and services using the billing API.
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!
Solved! Go to the solution
This is an accepted solution.
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)
This is an accepted solution.
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)
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 😉