Getting error with some payment_method - country combinations

i am getting an error when i try bank_transfer from India

{
    "amount": "751.77",
    "country": "IN",
    "currency": "INR",
    "payment_method_type_categories": [
        "bank_transfer"
    ],
    "ewallets": [
        {
            "ewallet": "ewallet_fa5b17e3bd5f281e46422f9ec743b807",
            "amount": "751.77"
        }
    ],
    "escrow": true,
    "escrow_release_days": 2
}

error status 400:

{
    "error_code": "ERROR_CHECKOUT_PAYMENT_METHOD_CATEGORY_CURRENCY_MISMATCH",
    "status": "ERROR",
    "message": "",
    "response_code": "ERROR_CHECKOUT_PAYMENT_METHOD_CATEGORY_CURRENCY_MISMATCH",
    "operation_id": "e1930c38-2cd3-4a31-9b9c-f37a2864cbde"
}

It works if i try for US:

{
    "amount": "10.00",
    "country": "US",
    "currency": "USD",
    "payment_method_type_categories": [
        "bank_transfer"
    ],
    "ewallets": [
        {
            "ewallet": "ewallet_fa5b17e3bd5f281e46422f9ec743b807",
            "amount": "10.00"
        }
    ],
    "escrow": true,
    "escrow_release_days": 2
}

this works status 200
ewallet payment method from india works fine. I only tested these 2… not sure what iam missing.

@solid-droid, You need to make an API Call to get full list of payments method supported in India.

This docs will provide you an API Call to get the list of country for Rapyd payments List of Payments docs link

In your own case, the API Get request will look like /v1/payment_methods/country?country=IN&currency=INR

Thanks

3 Likes