Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to create private app returns 403 status #23

Closed
jabarrioss opened this issue Dec 19, 2022 · 1 comment
Closed

Trying to create private app returns 403 status #23

jabarrioss opened this issue Dec 19, 2022 · 1 comment
Labels
bug Something isn't working unconfirmed Bug has not been reproduced yet

Comments

@jabarrioss
Copy link

For bug reporting only! If you're posting a feature request or discussion, please ignore.

Expected Behavior

I want to create a test charge in my development private app

Current Behavior

I created a private as I've always done but when I try to create a test charge, the ApiHelper returns status 403 when creating the new charge

Failure Information

When the ApiHelper file does a request to the endpoint for create charges it returns 403

Steps to Reproduce

  1. Create a new private app
  2. Activate the billing withing your env file
  3. Try to install the store fresh, this will not work if the store already exist in you database

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Package Version: "osiset/laravel-shopify": "^17.3"
  • Laravel Version: v 8.83.25
  • PHP Version: v7.4.19
  • Template Engine: Blade
  • Using a toolset (Docker, Laradock, Vagrant, etc.): Laragon

Failure Logs

[previous exception] [object] (GuzzleHttp\Exception\ClientException(code: 403): Client error: POST https://shopbasemiddleman.myshopify.com/admin/recurring_application_charges.json resulted in a 403 Forbidden response at C:\laragon\www\wsconfirm\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113)

@jabarrioss jabarrioss added bug Something isn't working unconfirmed Bug has not been reproduced yet labels Dec 19, 2022
@Kyon147
Copy link
Owner

Kyon147 commented Dec 20, 2022

Hi @jabarrioss

By the nature of private/customer apps, they are not allowed to use the billing api. Which you can read here: https://shopify.dev/apps/distribution#capabilities-and-requirements

You need to set up a public app if you wish to use the built in billing.

Your other issue this will not work if the store already exist in you database is likely because you don't have the uninstalled webhook set up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed Bug has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants