Version couldn't be created, app-access Validation errors

Version couldn't be created, app-access Validation errors

natee
Shopify Partner
2 0 1

1. How can i config the accessScopes in Partner Dashboard?
2. How to resolve the deploy issue?

I want to build my own extension, and i don't know how to config the access scopes in dashboard.
After I edit `access_scopes` in `shopify.app.toml` and try to deploy a new version, it was failed.

npm run dev:

 

 

 

╭─ warning ────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  The scopes in your TOML don't match the scopes in your Partner Dashboard    │
│                                                                              │
│  Scopes in shopify.app.toml:                                                 │
│    • write_payment_gateways                                                  │
│    • write_payment_sessions                                                  │
│                                                                              │
│   Scopes in Partner Dashboard:                                               │
│    • No scopes                                                               │
│                                                                              │
│  Next steps                                                                  │
│    • Run `npm run shopify app deploy` to push your scopes to the Partner     │
│      Dashboard                                                               │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

 

 

 

 

npm run deploy:

 

 

 

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  Version couldn't be created.                                                │
│                                                                              │
│  app-access                                                                  │
│                                                                              │
│  Validation errors                                                           │
│    • scopes: write_payment_gateways, write_payment_sessions,                 │
│      read_payment_gateways, read_payment_sessions                            │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

 

 

 

 

Replies 4 (4)

Liam
Community Manager
3108 341 880

Hi Natee,

 

The write_payment_gateways and write_payment_sessions access scopes are restricted scopes, and you need to apply for access. There is more information on this process in our developer docs.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

codemineral
Shopify Partner
1 0 0

Hi sorry but the doc is not clear, it seems i have a partners account, but i can't access thoses scopes, activate them or find information on scopes activation, could you help 

ndt_ts
Shopify Partner
27 3 7

Hi Liam..

So, kindly let me know if my understanding is correct.

In order to create a payments app,

1. We need to be a shopify payment partner
This will give access to creating the payment extension for our app.

2.Now we need to create a new app with payment extension.
The payment extension will only have a .toml file and not any other .jsx files unlike checkout extensions.
This extension needs to be sent for review. We still can't change the scope of our app to use write_payment_gateways, write_payment_sessions.

3.Once the payment extension is approved by Shopify, we shall be able to use write_payment_gateways, write_payment_sessions  scopes in our payments app. Then this app should also be sent for review.

4.Then we will publish the app. This will again be reviewed as per Shopify policies and will be available in Shopify app store.

Kindly correct me if its incorrect.. 

ndt_ts_0-1727361263316.png

 

Random82
Shopify Partner
1 0 0

I have same issues with other scopes:

 Scopes in shopify.app.my-app.toml: 
 • write_products 
 • write_delivery_customizations

 Scopes in Partner Dashboard:                                                                                                              • No scopes                                                                                                                          

 Next steps
• Run `npm run shopify app config push` to push your scopes to the Partner Dashboard