- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
listAndCountPaymentMethods - Payment Module Reference
This documentation provides a reference to the listAndCountPaymentMethods
method. This belongs to the Payment Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
This method retrieves all payment methods along with the total count of available payment methods, based on the context and configuration.
Example#
To retrieve a list of payment methods for a customer:
Parameters#
filters
FilterablePaymentMethodPropsThe filters to apply on the retrieved payment methods.
filters
FilterablePaymentMethodPropsThe configurations determining how the payment method is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a payment method.
select
or relations
, accept the
attributes or relations associated with a payment method.Returns#
Promise
Promise<[PaymentMethodDTO[], number]>The list of payment methods along with their total count.
Promise
Promise<[PaymentMethodDTO[], number]>Was this page helpful?