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

ParameterDescription
fiatThe fiat currency (e.g., INR, EUR, GBP).
cryptoThe crypto asset (e.g., USDT, USDC).
typeTransaction 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)

OptionDisplay NameModeType
gpay_intentGoogle PayINTENTINSTANT
paytm_intentPaytmINTENTINSTANT
phonepe_intentPhonePeINTENTINSTANT
other_upi_intentOther UPI AppsINTENTINSTANT
upi_transferOther UPIUPI MANUALMANUAL

Bank Transfer Options (INR)

OptionDisplay NameModeType
imps_transferIMPS Bank TransferIMPSMANUAL

International Payment Options (EUR, GBP)

OptionDisplay NameModeType
sepa_transferSEPA/ SEPA INSTANTBANK TRANSFERINSTANT/ 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.