Get Payment Methods By Channel
Description¶
The getPaymentMethodsByChannel endpoint is used to retrieve payment methods associated with a user's assigned channel.
Request¶
Endpoint¶
/ui/v1/getPaymentMethodsByChannel/n/false
Note
Replace n above with the ID of the user's channel (e.g., 1 for the default channel).
Method¶
GETHeader¶
Content-Type: application/json
Authorization: Basic $TOKEN
Note
Replace $TOKEN in the request with the base64-encoded username/password combination in the format username:password.
Given a username of username and a password of password, the request header would appear as follows:
Content-Type: application/json
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Response¶
[{
        "id": null,
        "paymentGatewayType": {
            "value": "CyberSource",
            "name": "CYBERSOURCE"
        },
        "paymentMethodType": {
            "value": "Credit Card",
            "name": "CREDIT_CARD"
        },
        "displayName": "Credit Card"
    }, {
        "id": null,
        "paymentGatewayType": {
            "value": "CyberSource",
            "name": "CYBERSOURCE"
        },
        "paymentMethodType": {
            "value": "PINless Debit Card",
            "name": "PIN_LESS_DEBIT_CARD"
        },
        "displayName": "PINless Debit Card"
    }, {
        "id": null,
        "paymentGatewayType": {
            "value": "CyberSource",
            "name": "CYBERSOURCE"
        },
        "paymentMethodType": {
            "value": "eCheck",
            "name": "ECHECK"
        },
        "displayName": "eCheck"
    }, {
        "id": null,
        "paymentGatewayType": {
            "value": "CyberSource",
            "name": "CYBERSOURCE"
        },
        "paymentMethodType": {
            "value": "VISA Checkout",
            "name": "VISA_CHECKOUT"
        },
        "displayName": "VISA Checkout"
    }, {
        "id": null,
        "paymentGatewayType": {
            "value": "PayPal",
            "name": "PAYPAL"
        },
        "paymentMethodType": {
            "value": "PayPal",
            "name": "PAYPAL"
        },
        "displayName": "PayPal"
    }, {
        "id": null,
        "paymentGatewayType": {
            "value": "CyberSource",
            "name": "CYBERSOURCE"
        },
        "paymentMethodType": {
            "value": "3D Secure",
            "name": "THREE_D_SECURE"
        },
        "displayName": "3D Secure"
    }
]