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.

Get a list of all payment methods/gateways by API

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
1453 239 534

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