List All Payment Methods
This method allows you to retrieve a list of payment methods supported for onramp transactions by the API.
Method Signature
async listPaymentMethods(): Promise<RampablePaymentMethod[]>
Returns
Promise<RampablePaymentMethod[]>
- An array of payment method objects with the following properties:
name
:string
- Name of the payment methodcode
:string
- Unique identifier codegroup
:string
- Payment method group categorycurrency
:string
- Supported currencyimage
:string
- URL to payment method logoisActive
:boolean
- Payment method availability statusflatFeeAmount
:number
- Fixed fee amountpercentFeeAmount
:number
- Percentage-based fee amountid
:string
- Unique identifier
Example Usage
// List all payment methods
const paymentMethods = await sdk.rampableReference.listPaymentMethods();
Response Example
[
{
"name": "Virtual Account Mandiri",
"code": "virtual_account_mandiri",
"group": "virtual_account",
"currency": "IDR",
"image": "https://cdn.rampable.co/mandiri.webp",
"isActive": true,
"flatFeeAmount": 2000,
"percentFeeAmount": 0,
"id": "65ae07a34bbef2a538a672e4"
}
// ... more payment methods
]
Additional Information
For more information, see the Rampable References API Documentation (opens in a new tab).