Payment methods
Payments methods represent all of the ways an account can move funds to another Moov account. Payment methods are generated programmatically when a card or bank account is added or the status is updated, for example, ach-debit will be added as a payment method once the bank account is verified.
List payment methods
Retrieve all of the payment methods associated with a Moov account.
To retrieve payment methods, you'll need to specify the /accounts/{accountID}/payment-methods.read scope when generating a token.
Parameters
| Name | Type |
|---|---|
accountID |
string |
const accountID = "accountID";
moov.accounts.paymentMethods.list({accountID});
Get payment method
Get the specified payment method associated with a Moov account.
To get a specified payment method, you'll need to specify the /accounts/{accountID}/payment-methods.read scope when generating a token.
Parameters
| Name | Type |
|---|---|
accountID |
string |
paymentMethodID |
string |
const accountID = "accountID";
const paymentMethodID = "paymentMethodID";
moov.accounts.paymentMethods.get({accountID, paymentMethodID});