Retrieve enabled payment methods by API

Hey,

I’m trying to retrieve all payment methods enabled on a store by API (either GraphQL or REST actually).

Does anyone have any idea on how to do that?

This would help us add valuable feature to a Shopify App.

I found the following related topics which either remained unanswered or which points to a non-working endpoint for the 2nd one:

The idea would be to retrieve all payment methods enabled as they appear in the order’s resource under the “payment_gateway_names” field.

Thanks in advance!

1 Like

Hi :waving_hand:
Could you share your use case for requiring the Shop’s active payment gateways?

At this time this information is not accessible by the API.

Hi Lizk,

Thank you for your quick reply!

Sure, the use case is the following:

  • With my team, we develop an app that allows merchants to sync their orders with some accounting (third-party) software

  • This app enables automatic sync: when an order is placed on a store, the invoice gets automatically generated in the third-party invoicing software

  • Some users of this app want to only enable this automatic sync for specific payment methods (e.g. only sync orders which are paid “at invoice reception” which is quite common in our location; only sync orders which are placed by credit card as other are still handled manually in their accounting; etc.)

A workaround would be to fetch as much “last orders” as possible and create a set of all payment methods that have been used, but:

  1. That is unproductive (in terms of requests/API usage/development)

  2. That does not guarantee having an exhaustive list of all payment methods available

Thus, do you think their would be any way for us to access such information by API? (Or if there is any plan to make this public?)

Thank you!