Get List of Payment Gateways
Learn how to get the list of payment gateways.
Payment Gateway - Data Model
field | type | description |
---|---|---|
id | string | ID of the payment gateway. Usually of the form: countryCode .type .shortname .currency ng.bank.ecobank.ngn |
countryCode | string | Two letter country shortcode, e.g. ng |
currency | string | Three letter currency code, e.g. NGN , KES |
type | enum | Type of payment gateway. Valid values are:bank , mobile-money , wallet |
institutionId | string | Short local name of the institution |
name | string | Long offical name of the institution |
feeStructure | string | Fee Structure for all withdrawal charges performed by the payment gateway |
rsaPublicKeyBase64 | string | RSA public key of the payment gateway, base64 encoded |
email | string | Email of the payment gateway |
website | string | Website of the payment gateway |
accountVerificationEndpoint | string | Account Verification Endpoint for the payment gateway |
accountVerificationBearerToken | string | Account Verification Bearer Token for the payment gateway |
processingGateway | string | Contains the id of the payment gateway which process all requests for this gateway.null if this is a root PAPE gateway |
API Calls
GET
/payment-gateways
Gets list of payment gateways.
Gets list of payment gateways.
Endpoints
staging
: https://apis-alpha.dev.projectwhite.io
Parameters
None
Responses
http code | content-type | response |
---|---|---|
200 | application/json | Returns list of payment gateways |
4xx | application/json | {"error": "string","message": "string" |
Try It Out
Get Token
export PAPE_TOKEN_ENDPOINT=https://id.dev.projectwhite.io/auth/realms/projectwhite/protocol/openid-connect/token;
export PAPE_API_ENDPOINT=https://apis-alpha.dev.projectwhite.io
export PAPE_USERNAME=cm.wallet.interstellar-demo.xaf;
export PAPE_PASSWORD=abc;
export PAPE_TOKEN=`curl -s --request POST \
--url "$PAPE_TOKEN_ENDPOINT" \
--data-urlencode grant_type=password \
--data-urlencode username=$PAPE_USERNAME \
--data-urlencode password=$PAPE_PASSWORD \
--data-urlencode 'client_id=projectwhite' \
| jq -r ".access_token"`
echo $PAPE_TOKEN
Get Payment Gateways
curl -s --request GET \
--url "$PAPE_API_ENDPOINT/payment-gateways" \
--header "accept: application/json" \
--header 'accept: */*' \
--header "Authorization: Bearer $PAPE_TOKEN" | jq .