Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

test the Billing API

Solved

test the Billing API

AliAdhami
Shopify Partner
4 0 0

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!

Accepted Solution (1)

LetterT
Shopify Partner
53 5 19

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)

Don't be shy, click that like button!

View solution in original post

Replies 3 (3)

LetterT
Shopify Partner
53 5 19

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)

Don't be shy, click that like button!
AliAdhami
Shopify Partner
4 0 0

@LetterT  Thank you! Does it also work for Subscription charges (recurring)?

LetterT
Shopify Partner
53 5 19

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 😉

Don't be shy, click that like button!