Shopify Remix Billing API - Issues with Test Mode

Shopify Remix Billing API - Issues with Test Mode

polymorphtech
Shopify Partner
5 0 1

I'm stuck in the final stages of app approval due to challenges with the Remix Billing API.

 

- When I test my my app on my development store, I am able to successfully initiate real, non-test charges (initiate, but not complete, because development stores cannot process real charges).
- However, when the app store review team tests my app on a non-development store, they tell me they experience only test charges
- Since developers cannot test apps on non-development stores, the app store team tried to give me staff access to a non-development store so I could replicate the issue they're seeing. But that didn't work due as the staff access still had permissions issues and did not allow me to access the page to approve charges

 

Here are all the calls I make to the Billing API:

> const billingTest = false;

> const { billing } = await authenticate.admin(request);

 

> const { hasActivePayment, appSubscriptions } =
await billing.check({
plans: [MONTHLY_PLAN],
isTest: billingTest,
});

 

> await billing.cancel({
subscriptionId: appSubscriptions[0].id,
isTest: billingTest,
prorate: true,
});

 

> await billing.require({

plans: [MONTHLY_PLAN],
isTest: billingTest,
onFailure: async () => billing.request({ plan: MONTHLY_PLAN, isTest: billingTest, returnUrl: planPageUrl }),
});`

 

Appreciate guidance from the community

 

## Expected behavior

Real non-test charges should be initiated on all stores: development & non-development stores

## Actual behavior

Real non-test charges are being initiated on development stores. Questionable behaviour occurring on non-development stores

Reply 1 (1)

polymorphtech
Shopify Partner
5 0 1