Stuck at oAuth Step in Shopify PHP App Development

Solved

Stuck at oAuth Step in Shopify PHP App Development

KabirDev
Shopify Partner
248 61 71

I'm attempting to build my first Shopify app using PHP and I've hit a roadblock at the oAuth step. Instead of redirecting to the oAuth admin page as expected, it takes me to the Shopify home page. I've attached both a screenshot of my code and a video to demonstrate the issue. Does anyone have any insights on how to fix this? Thank you!

install.jpg

- Control payment methods visibility at checkout by KlinKode PayRules app.
- Contact me directly at [email protected]
Accepted Solution (1)

KabirDev
Shopify Partner
248 61 71

This is an accepted solution.

I solved it. The problem was in the 11 no. line. I used `grant_options` but it should be `grant_options[]`. Thanks.

- Control payment methods visibility at checkout by KlinKode PayRules app.
- Contact me directly at [email protected]

View solution in original post

Reply 1 (1)

KabirDev
Shopify Partner
248 61 71

This is an accepted solution.

I solved it. The problem was in the 11 no. line. I used `grant_options` but it should be `grant_options[]`. Thanks.

- Control payment methods visibility at checkout by KlinKode PayRules app.
- Contact me directly at [email protected]