Commit 9d002e61 authored by Muhammad Fahrul's avatar Muhammad Fahrul

add README.md #2

parent fe047235
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
This libary creates a settlement based on the provided transaction data. This libary creates a settlement based on the provided transaction data.
## Parameters ## Parameters
- `$operatorCode`: will be given separately.
- `$siteCode`: will be given separately.
- `$data`: An array containing transaction data. - `$data`: An array containing transaction data.
## Return Value ## Return Value
...@@ -36,6 +39,9 @@ $result = $instance->create($data); ...@@ -36,6 +39,9 @@ $result = $instance->create($data);
// Handle the result // Handle the result
if ($result['status']) { if ($result['status']) {
// Sample to generate file from the result
file_put_contents($result['data']['filename'], $result['data']['content']);
echo "Settlement created successfully."; echo "Settlement created successfully.";
} else { } else {
echo "Failed to create settlement. Error: " . $result['message']; echo "Failed to create settlement. Error: " . $result['message'];
......
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