Closed bhr closed 1 year ago
We check for billing status in requestBilling
in two places:
server.get(
shopify.config.auth.callbackPath,
shopify.auth.callback(),
requestBilling,
shopify.redirectToShopifyOrAppRoot()
);
and
server.use('/*', shopify.validateAuthenticatedSession(), requestBilling,…
Could this be a timing issue where requestBilling
is called too quickly after approving the charge causing hasPayment
to return false
?
Closing here as shopify-api-js is probably the library where the issue is.
Issue summary
Shopify app review team can't proceed with our app review because they're stuck in a billing charge approval loop.
We can't reproduce the issue in any of our development stores, so we're a bit at odds end.
From the app insights, we can see that the subscription charge is activated, immediately, canceled, and activated again.
@shopify/shopify-app-express
version: 2.1.1Debug server logs
Expected behavior
After approving a charge, the user is redirected to the app
Actual behavior
After approving a charge, the user is redirected to approve the charge again
server.ts