Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jimmyn opened this issue Sep 9, 2024 · 0 comments
Open

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

jimmyn opened this issue Sep 9, 2024 · 0 comments

Comments

@jimmyn
Copy link
Collaborator

jimmyn commented Sep 9, 2024

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.

  • Check the country dynamically
  • Check if payment method is enabled

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant