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.

Re: Shopify Admin API. How to get all payment gateways? How to get info about partial payments?

Solved

Shopify Admin API. How to get all payment gateways? How to get info about partial payments?

Dzonotonas
Shopify Partner
18 1 8

Hi 👋

 

https://help.shopify.com/en/manual/products/purchase-options/pre-orders

Preorders are currently only available to merchants using Shopify Payments or Paypal Express. How do I can get this information via Shopify admin API?

First I tried to get info about partial payment possibility on the store, but unsuccessfully. Example of what I tried to look: 

{
   partialPaymentsAvailable: true
}

Second I tried to look for separate information about Shopify Payments and Paypal Express.

Shopify Payments

I found this API: https://shopify.dev/docs/api/admin-graphql/2024-01/queries/shopifyPaymentsAccount which can indicate whether a Shopify Payments is activated or not.

 

Paypal Express

How to get similar information as Shopify Payments about Paypal Express?

Accepted Solution (1)
ShopifyDevSup
Shopify Staff
1453 238 518

This is an accepted solution.

Hi @Dzonotonas,

 

For the ShopFeatures object, the paypalExpressSubscriptionGatewayStatus field being ENABLED does indicate that your Paypal Express Gateway is eligible and fully configured to sell subscription on the Paypal Gateway.

For the shopifyPaymentsAccount query, the ShopifyPaymentsAccount.activated field doesn't actually have anything to do with subscriptions on your store, it only indicates if your Shopify Payments account is activated or not, meaning if you are able to sell anything using Shopify payments, it will return true, not just subscription products.

I hope this helps, and I hope you have a great day 🙂

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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

View solution in original post

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 518

Hey @Dzonotonas

 

That's a great question. We don't have a specific endpoint available to check the eligibility for pre-orders. 

 

I'd suggest using the shop features object as what you need can be inferred from there. https://shopify.dev/docs/api/admin-graphql/2024-01/objects/ShopFeatures#top 

 

For example, if the Shopify Payments or PaypalExpress are not eligible for subscriptions, then likely they won't work for other selling plans like pre-orders either. 

 

Hope that helps! 

 

- Kyle G.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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

Dzonotonas
Shopify Partner
18 1 8

https://shopify.dev/docs/api/admin-graphql/2024-01/objects/ShopFeatures#top If `paypalExpressSubscriptionGatewayStatus` value is `ENABLED`, is it means eligible for subscriptions?

 

https://shopify.dev/docs/api/admin-graphql/2024-01/queries/shopifyPaymentsAccount If `activated` value is `true`, is it means eligible for subscriptions?

ShopifyDevSup
Shopify Staff
1453 238 518

This is an accepted solution.

Hi @Dzonotonas,

 

For the ShopFeatures object, the paypalExpressSubscriptionGatewayStatus field being ENABLED does indicate that your Paypal Express Gateway is eligible and fully configured to sell subscription on the Paypal Gateway.

For the shopifyPaymentsAccount query, the ShopifyPaymentsAccount.activated field doesn't actually have anything to do with subscriptions on your store, it only indicates if your Shopify Payments account is activated or not, meaning if you are able to sell anything using Shopify payments, it will return true, not just subscription products.

I hope this helps, and I hope you have a great day 🙂

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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