App reviews, troubleshooting, and recommendations
Hi, I've been working my app and getting close to make it work, but my billing API keeps on saying "You will not be billed for this test charge." even I already set the "isTrue" to false (actually tried both already false and null).
Here's my code:
shopify.server.js
billing: { [MONTHLY_PLAN]: { amount: 1.99, currencyCode: 'USD', interval: BillingInterval.Every30Days, } }
await billing.require({ plans: [MONTHLY_PLAN], isTest: false, onFailure: async () => billing.request({ plan: MONTHLY_PLAN, returnUrl: `/app-page`, }), })
There is an issue with the Shopify API documentation. The solution is to include isTest: false in billing.request as well. Hence, the solution could be :
await billing.require({ plans: [MONTHLY_PLAN], isTest: false, onFailure: async () => billing.request({ plan: MONTHLY_PLAN, returnUrl: `/app-page`,
isTest: false }), })
The same is mentioned here : https://github.com/Shopify/shopify-app-template-remix/issues/392#issuecomment-1775867448
Yeah, I already fogured this one out too that same day lol.
Thanks,
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025