Commit 12bad10b authored by Muhammad Fahrul's avatar Muhammad Fahrul

add README.md #4

parent 10079d15
......@@ -32,7 +32,7 @@ require_once('./SingleSettlement.php');
// Sample operator code
$operatorCode = '0053';
// Sample site code
$siteCode = '0053';
$siteCode = '00';
// Sample data array
$data = json_decode('[{"sam_report":"603298407594505900840D706E89064206151301000120F2030000AFB8000023012416510000000006000283386FC8","bank_code":"0","bank_mid":"0001","bank_tid":"06012800","card_no":"6032981000046656","timestamp":"10112023105758","amount":"0000000001","last_deposit":"0000000893"},{"sam_report":"603298407594505900840D706E89064206151301000120F2030000AFB8000023012416510000000006000283386FC8","bank_code":"0","bank_mid":"0001","bank_tid":"06012800","card_no":"6032981000046656","timestamp":"10112023105758","amount":"0000000001","last_deposit":"0000000893"},{"sam_report":"603298407594505900840D706E89064206151301000120F2030000AFB8000023012416510000000006000283386FC8","bank_code":"0","bank_mid":"0001","bank_tid":"06012800","card_no":"6032981000046656","timestamp":"10112023105758","amount":"0000000001","last_deposit":"0000000893"}]', true); // Define your data array here
......@@ -46,6 +46,8 @@ $result = $instance->create($data);
if ($result['status']) {
// Sample to generate file from the result
file_put_contents($result['data']['filename'], $result['data']['content']);
// this file must be send to MDD SFTP
// credential SFTP will be given separately
echo "Settlement created successfully.";
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment