MONEI / MONEI-WooCommerce

WooCommerce module for MONEI
https://docs.monei.com/docs/e-commerce/woocommerce/
Other
6 stars 7 forks source link

Check if payment method is enabled and available in MONEI #73

Open jimmyn opened 1 month ago

jimmyn commented 1 month ago

It is possible to get information about what payment methods are supported by accountId or paymentId, this request also returns the supported countries. The request is cached, in order to bypass cache pass a timestamp as query parameter

https://api.monei.com/v1/payment-methods?paymentId={{paymentId}}&t=1234556 https://api.monei.com/v1/payment-methods?accountId={{accountId}}

We should check if payment method is enabled in MONEI before showing it.

On the frontend you can call monei.api.getPaymentMethods({paymentId, accountId})