This page describes the payment methods available through the Two-Coin API and how to work with them in your integration.
The Two-Coin platform supports various payment methods that may differ based on the user's location, currency, and other factors. The available payment methods include:
To get a list of payment methods available for a fiat currency and country, make a GET request:
GET https://api.dev2coin.space/api/on_ramp/payment_methods?fiat_currency=35&country_code=USNote: The fiat_currency parameter uses integer IDs from GET /api/dict/currencies (e.g., 35 for USD)
| Parameter | Type | Required | Description |
|---|---|---|---|
fiat_currency | integer | Yes | Currency ID (e.g., 35 for USD) |
country_code | string | No | Two-letter country code (ISO 3166-1) |
state | string | No | State/province code (for US) |
provider_codes | string | No | Comma-separated provider codes to filter |
{
"payment_methods": [
{
"code": "card",
"name": "Credit Card",
"icon_url": "https://assets.dev2coin.space/payment-methods/card.svg"
},
{
"code": "bank_transfer",
"name": "Bank Transfer",
"icon_url": "https://assets.dev2coin.space/payment-methods/bank.svg"
},
{
"code": "apple_pay",
"name": "Apple Pay",
"icon_url": "https://assets.dev2coin.space/payment-methods/apple-pay.svg"
},
{
"code": "sepa",
"name": "SEPA Direct Debit",
"icon_url": null
}
]
}| Property | Type | Description |
|---|---|---|
code | string | Payment method code used in order creation |
name | string | Display name for the payment method |
icon_url | string | null | URL to payment method icon (may be null) |
cardCredit/Debit Card
bank_transferBank Transfer
apple_payApple Pay
paypalPayPal
sepaSEPA Direct Debit
idealiDEAL (Netherlands)
sofortSofort (EU)
bancontactBancontact (Belgium)
pixPIX (Brazil)
yellow_cardYellow Card (Africa)
payidPayID (Australia)
When creating an order, specify the payment method code from this endpoint in the payment_method field.
https://api.dev2coin.space/api/on_ramp/payment_methods?fiat_currency=35&country_code=UShttps://api.dev2coin.space/api/on_ramp/offers?external_user_id=user123¤cy_from=35¤cy_to=15&amount_from=100&country=US&payment_method=cardPOST https://api.dev2coin.space/api/on_ramp/orders
{
"provider_code": "changelly",
"external_user_id": "user_12345",
"external_order_id": "order_67890",
"from_currency": 35,
"to_currency": 15,
"from_amount": "100.00",
"payment_method": "card",
"country_code": "US",
"wallet_address": "bc1q..."
}The availability of payment methods depends on several factors:
Always check for available payment methods dynamically rather than hardcoding them in your application. This ensures your integration adapts to changes in payment method availability.
In the test environment, you can use test payment methods with predefined test credentials. See the Testing section for more information on testing different payment methods.
If you encounter any issues or have questions not addressed in this documentation, please contact our support team on Telegram at https://t.me/cs_2coin (@cs_2coin).