List active payment methods
curl --request GET \
--url https://leuwongrr.online/api/v1/catalog/payment-methodsconst options = {method: 'GET'};
fetch('https://leuwongrr.online/api/v1/catalog/payment-methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://leuwongrr.online/api/v1/catalog/payment-methods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"message": "OK",
"data": {
"payment_methods": [
{
"code": "qris",
"slug": "qris",
"name": "QRIS",
"type": "gateway",
"provider": "paydisini",
"usage_scope": "both",
"fee_type": "percent",
"fee_value": 0.7,
"unique_amount_enabled": false
}
],
"scope": "order"
}
}{
"success": false,
"message": "Unauthorized API token."
}{
"success": false,
"message": "Unauthorized API token."
}Endpoint Publik Aman
List active payment methods
Mengambil metode pembayaran aktif yang aman ditampilkan. Response tidak menyertakan credential provider, secret, atau data operasional sensitif.
GET
https://leuwongrr.online
/
api
/
v1
/
catalog
/
payment-methods
List active payment methods
curl --request GET \
--url https://leuwongrr.online/api/v1/catalog/payment-methodsconst options = {method: 'GET'};
fetch('https://leuwongrr.online/api/v1/catalog/payment-methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://leuwongrr.online/api/v1/catalog/payment-methods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"message": "OK",
"data": {
"payment_methods": [
{
"code": "qris",
"slug": "qris",
"name": "QRIS",
"type": "gateway",
"provider": "paydisini",
"usage_scope": "both",
"fee_type": "percent",
"fee_value": 0.7,
"unique_amount_enabled": false
}
],
"scope": "order"
}
}{
"success": false,
"message": "Unauthorized API token."
}{
"success": false,
"message": "Unauthorized API token."
}Was this page helpful?