Dokumentasi API

Detail Payment

API ini digunakan untuk melihat detail dari metode pembayaran

HTTP Method POST
API URL https://pay.cishopindo.id/api/v1/payment
Response JSON
account_id Account ID Anda
signature Signature dengan formula md5 dari account_id:secret
X-API-KEY API KEY Anda
                                                
<?php 
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://pay.cishopindo.id/api/v1/payment');   
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);

$headers = [
    'X-API-KEY: A3DCB861B271S299S4S53F2B', // Ganti dengan API key anda
];

$post = array(
    'account_id' => 'acct_6254s922a62b3138190092', // Ganti dengan Akun ID anda
    'signature' => 'cdf21ccccac75ec529e7a4d4c209a8a2'
);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);
?>
                                                
                                            

Response API CishoPay

Jenis Respon API yang ditampilkan oleh pihak CishoPay

                                                
{
    "status": "success",
    "code": 200,
    "message": "Berhasil Melihat Detail Payment",
    "data": [{
            "code_payment": "CSVABCA",
            "name_payment": "Virtual Account Bank BCA",
            "type_payment": "Virtual Account",
            "min_amount": "10000",
            "max_amount": "1000000000",
            "fee": {
                "fix": 4900,
                "percent": 0,
            },
            "images_payment": "https:\/\/cishopay.co.id\/assets\/images\/payment\/bca.png",
            "status": "active"
        },
        {
            "code_payment": "CSQRIS",
            "name_payment": "QRIS CishoPay",
            "type_payment": "QRIS",
            "min_amount": "1000",
            "max_amount": "20000000",
            "fee": {
                "fix": 750,
                "percent": 0.7,
            },
            "images_payment": "https:\/\/cishopay.co.id\/assets\/images\/payment\/qris.png",
            "status": "active"
        },
        {
            "code_payment": "CSDANA",
            "name_payment": "DANA",
            "type_payment": "EWALLET",
            "min_amount": "10000",
            "max_amount": "2000000000",
            "fee": {
                "fix": 0,
                "percent": 3,
            },
            "images_payment": "https:\/\/cishopay.co.id\/assets\/images\/payment\/dana.png",
            "status": "active"
        },
        {
            "code_payment": "CSGOPAY",
            "name_payment": "GOPAY",
            "type_payment": "EWALLET",
            "min_amount": "10000",
            "max_amount": "2000000000",
            "fee": {
                "fix": 0,
                "percent": 3,
            },
            "images_payment": "https:\/\/cishopay.co.id\/assets\/images\/payment\/gopay.png",
            "status": "inactive"
        }
    ]
}
                                                
                                            
                                                
{
    "status": "error",
    "message": "Tidak Menemukan Detail Payment."
}