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,
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024