Fetching Payment Methods
Fetching Payment Methods for Crypto Buy Guide
The Fetching Payment Methods API allows merchants to retrieve available payment methods for purchasing a specific crypto asset with fiat currency. This API is crucial for providing users a tailored list of payment options based on their selected fiat currency and crypto asset.
Functionality Overview
This API provides:
- A categorized list of supported payment methods such as UPI and Bank Transfer.
- Information on the availability and configuration of each method.
- Details about payment options, including display names, types, priorities, and modes (e.g., INTENT, MANUAL).
Merchants can use this API to display payment methods dynamically to users during the crypto-buy process.
Sample Request
curl --location '<https://mudrex.com/api/v1/wallet/conversion/fiat/methods?fiat=INR&crypto=USDT&type=buy'>
--header 'X-Timestamp: {{timestamp}}'
--header 'X-Client-Id: •••••••'
--header 'X-Request-Id: m'
--header 'X-Secret-Key: •••••••'
{
"success": true,
"data": {
"UPI": {
"enabled": true,
"options": {
"gpay_intent": {
"id": 1,
"conversion_type": "BUY",
"name": "gpay_intent",
"display_name": "Google Pay",
"description": null,
"icon": null,
"mode": "INTENT",
"type": "INSTANT",
"priority": 1
},
"paytm_intent": {
"id": 2,
"conversion_type": "BUY",
"name": "paytm_intent",
"display_name": "Paytm",
"description": null,
"icon": null,
"mode": "INTENT",
"type": "INSTANT",
"priority": 3
},
"phonepe_intent": {
"id": 3,
"conversion_type": "BUY",
"name": "phonepe_intent",
"display_name": "PhonePe",
"description": null,
"icon": null,
"mode": "INTENT",
"type": "INSTANT",
"priority": 2
},
"other_upi_intent": {
"id": 4,
"conversion_type": "BUY",
"name": "other_upi_intent",
"display_name": "Other UPI Apps",
"description": null,
"icon": null,
"mode": "INTENT",
"type": "INSTANT",
"priority": 4
}
},
"category_name": "UPI",
"category_display_name": "UPI Options"
},
"BANK_TRANSFER": {
"enabled": true,
"options": {
"imps_transfer": {
"id": 6,
"conversion_type": "BUY",
"name": "imps_transfer",
"display_name": "IMPS/NEFT Bank Transfer",
"description": null,
"icon": null,
"mode": "IMPS",
"type": "MANUAL",
"priority": 1
}
},
"category_name": "BANK_TRANSFER",
"category_display_name": "Bank Transfer"
}
}
}
Required Parameters
Parameter | Description |
---|---|
fiat | The fiat currency (e.g., INR, EUR, GBP). |
crypto | The crypto asset (e.g., USDT, USDC). |
type | Transaction type (e.g., buy). |
Example Payment Methods
Here is a list of some sample payment methods available on Saber Money based on different currencies. Please note that this list is for indicative purposes, and the methods available can change based on our banking partner availability.
UPI Options (INR)
Option | Display Name | Mode | Type |
---|---|---|---|
gpay_intent | Google Pay | INTENT | INSTANT |
paytm_intent | Paytm | INTENT | INSTANT |
phonepe_intent | PhonePe | INTENT | INSTANT |
other_upi_intent | Other UPI Apps | INTENT | INSTANT |
upi_transfer | Other UPI | UPI MANUAL | MANUAL |
Bank Transfer Options (INR)
Option | Display Name | Mode | Type |
---|---|---|---|
imps_transfer | IMPS Bank Transfer | IMPS | MANUAL |
International Payment Options (EUR, GBP)
Option | Display Name | Mode | Type |
---|---|---|---|
sepa_transfer | SEPA/ SEPA INSTANT | BANK TRANSFER | INSTANT/ MANUAL |
Additional Notes
- Dynamic Configuration: The available payment methods depend on the selected fiat currency, crypto asset, and type.
- Real-Time Updates: Ensure your system fetches payment methods dynamically to reflect the latest configuration.
For detailed parameter descriptions and advanced configurations, visit the API Reference here.
Updated 10 days ago