-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackend-tester.php
More file actions
28 lines (25 loc) · 960 Bytes
/
backend-tester.php
File metadata and controls
28 lines (25 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
require_once 'vendor/autoload.php';
$data = [
'MerchantCode' => "M09111",
'PaymentId' => "",
'RefNo' => "83-6732",
'Amount' => "3.04",
'Currency' => "MYR",
'ProdDesc' => "Event Registration Fee",
'UserName' => "Hui Yang Ch'ng",
'UserEmail' => "chy1988@gmail.com",
'UserContact' => "016461234",
'Remark' => "",
'Lang' => "",
'Signature' => "0gb78GrvFMSPLbUg0oYlyy+YrDg=",
'ResponseURL' => "https://event.my/payment/default/complete-payment?payId=6732&cancelUrl=%2Forder%2Fdefault%2Fpayment&type=order&payMethod=ipay88",
'BackendURL' => "https://event.my/payment/default/complete-payment?payId=6732&cancelUrl=%2Forder%2Fdefault%2Fpayment&type=order&payMethod=ipay88&backend=1",
];
?>
<form action="<?= $data['BackendURL'] ?>" method="post">
<?php foreach($data as $key => $value): ?>
<input type="hidden" name="<?= $key ?>" value="<?= $value ?>" />
<?php endforeach ?>
<button>submit</button>
</form>