Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Get a list of all payment methods/gateways by API

StoreContrl_Adm
Shopify Partner
3 0 2

We are searching for a API call to list all the available Shopify payment methods. We need to do a maping between these methods and custom methodes inside a POS system. Is there any way to retrieve this data by API? We already tried this call: 

'/admin/api/2023-04/payment_methods.json'
Reply 1 (1)

ShopifyDevSup
Shopify Staff
1244 201 441

Hey @StoreContrl_Adm 👋 - there's not currently a way to query payment gateways via the API, but if you did just need specific payment methods (for example, the digital wallets a shop supports or the types of credit cards it can take), there is a way you can query those values through the storefront API. An example query might look something like this:

{
 shop {
   paymentSettings {
     enabledPresentmentCurrencies
     acceptedCardBrands
     supportedDigitalWallets
   }
 }
}

 

Hope this helps! 

Al | Shopify Developer Support

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