Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Shopify Payment app api graphql

Shopify Payment app api graphql

gabrielvictoria
Shopify Partner
13 0 2

Hi, I'm having a problem when I try to call any mutation (paymentSessionResolve, etc...) on php from payments app api at this endpoint => (https://{shop_domain}/payments_apps/api/2022-10/graphql.json), the response is a HTML which says "Access denied - you don't have permission to access this website", I'm sending the shopify token but not even checks if it is valid... I made a test on graphql admin api endpoint and it returns a message when is not valid token.

 

But if I do the same graphql request on postman, it works perfectly... the mutation works and generate an order on shopify admin dashboard.

 

To call other mutations (createproduct, deleteproduct, order, etc...) from admin graphql api at this endpoint => (https://{shop}.myshopify.com/admin/api/2021-07/graphql.json) I don't have any problem, I do on php curl and postman and both works well.

 

I appreciate if anyone help me on this.

Replies 0 (0)