-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Bug Description:
Shopify throws an "Invalid Signature" error on App Subscription Charge acceptance for the merchant and they are unable to continue forward.

To Reproduce:
in pages/api/auth/callback.js:
Create a custom afterAuth function to create a subscription.
Retrieve the confirmationUrl from the appSubscriptionCreate response
return confirmationUrl from function
// const recurringApplicationCharge = ....
//fetch confirmationURL
const redirectUrl =
recurringApplicationCharge.body.data.appSubscriptionCreate
.confirmationUrl;
// Redirect to billing url
return redirectUrl;
Upon returning control to handleAuthCallback.js, the following code block executes:
res.redirect(
`${redirectPath || process.env.HOME_PATH}?${querystring.stringify(
req.query
)}`
The resulting redirectURL is set to
The issue is that the redirect string is adding in an additional ? whereas in the overridden scenario, it should append an & as there is already a query parameter present in the URL string.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels