Beispiel #1
0
<?php

require_once './CimbClicks.class.php';
$cimbClicks = new CimbClicks('TBPRSBEPAY');
$cimbClicks->setPaymentMode(CimbClicks::PAYMENT_MODE_DEV);
?>
<!doctype html>
<html>
<head>
    <title>CIMB Clicks example - Request</title>
</head>
<body>
    <form action="<?php 
echo $cimbClicks->getPaymentUrl();
?>
" method="get">
        <input type="text" name="payeeId" value="<?php 
echo $cimbClicks->getPayeeId();
?>
" />
        <input type="text" name="billAccountNo" value="ABC0000000001" />
        <input type="text" name="billReferenceNo" value="XYZ0000000001" />
        <input type="text" name="billReferenceNo2" value="" />
        <input type="text" name="billReferenceNo3" value="" />
        <input type="text" name="billReferenceNo4" value="" />
        <input type="text" name="amount" value="1.00" />
        <input type="submit" value="Pay with CIMB Clicks" />
    </form>
</body>
</html>
<?php

require_once './CimbClicks.class.php';
$cimbClicks = new CimbClicks('PAYEE_ID');
echo $cimbClicks->getStatusEnquiry(array('payeeId' => $cimbClicks->getPayeeId(), 'billAccountNo' => '<Bill Account Number>', 'billReferenceNo' => '<Bill Reference Number>', 'billReferenceNo2' => '<Bill Reference Number 2>', 'billReferenceNo3' => '<Bill Reference Number 3>', 'billReferenceNo4' => '<Bill Reference Number 4>', 'amount' => '<Amount>'));
Beispiel #3
0
<?php

require_once './CimbClicks.class.php';
$cimbClicks = new CimbClicks('PAYEE_ID');
$response = $cimbClicks->getPaymentResponse();
var_dump($response);
// Use this to debug