App reviews, troubleshooting, and recommendations
After trying to submit our app the app is refused with error:
Resolve issues that are returning errors after authenticating with OAuth on install to comply with our requirements. You cannot request a merchant's .myshopify.com URL. See this screencast for additional details.
I have done OAuth strictly this guide.
@get(':gateway')
@HttpCode(HttpStatus.OK)
public async authorize(
@Query() query: any,
@Anonymous('gateway') gateway: string,
@Req() req: Request,
@Res() res: Response,
): Promise<any> {
const oauth: OauthInterface = await this.shopifyService.OAuthDataExist(query.shop, gateway);
if (oauth && oauth.accessToken) {
res.redirect("Hello Word");
} else {
const nonce: string = uuid();
await this.shopifyService.saveInitialOAuthData(query, gateway, nonce);
const authorizeDto: any = {
client_id: environment.paymentAppConfig[gateway].apiKey,
redirect_uri: `${environment.shopifyAppTempMicroUrl}/installation/${gateway}`,
scope: environment.shopifyScopes,
state: nonce,
};
const str: string[] = [];
for (const p in authorizeDto) {
if (authorizeDto.hasOwnProperty(p)) {
str.push(encodeURIComponent(p) + '=' + encodeURIComponent(authorizeDto[p]));
}
}
const queryString: string = str.join('&');
const OAuthAuthorizeUrl: string = `https://${query.shop}/admin/oauth/authorize?${queryString}&grant_options[]=value`;
res.redirect(OAuthAuthorizeUrl);
}
}
It works correct for my developer shops. But after submitting we can't pass review and
intead to be redirected to redirect_uri -> /installation/:gateway the reviewer is getting the error Server Error.
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025