Skip to main content

Get a list of available payment channels

Example request​

<?php

$shopId = ""; // Payment Point ID
$secretPhrase = ""; // Payment Point Secret
$mainUrl = "https://pay.cashbill.pl/ws/rest";
$ch = curl_init();


curl_setopt_array($ch, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => "{$mainUrl}/paymentchannels/{$shopId}",
));

$paymentChannels = json_decode(curl_exec($ch));

Schema of the response​

[
{
"id": "string",
"availableCurrencies": [
"string"
],
"name": "string",
"description": "string",
"logoUrl": "string"
}
]