Get Payment Method

Before you initiate a payment session, you need to know which payment methods are available to the merchant (e.g., FPX, card payments, QR, eWallet, etc.).

This endpoint returns all active payment methods (gateways) associated with the current interface.

Endpoint URL

GET https://{base_url}/v1/interface/gateways

Response

{
    "gateways": [
        {
            "gateway_uuid": "52c75ce3-636c-45c2-b8af-998cfed23d78",
            "gateway_type": "Fpx",
            "enabled": true,
            "bank_type": "retail",
            "bank_view": "list"
        },
        {
            "gateway_uuid": "9a82fe64-c122-4f5b-8993-24a479b67723",
            "gateway_type": "Duitnow",
            "enabled": true,
            "bank_type": "retail",
            "bank_view": "list"
        }
    ]
}

gateway_type is the available payment method that can be used in the current payment session. e.g: current payment session session only support Fpx and Duitnow payment method.

Last updated