Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
Backend Library Settlement Creator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open_share
Backend Library Settlement Creator
Commits
9d002e61
Commit
9d002e61
authored
Mar 20, 2024
by
Muhammad Fahrul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add README.md #2
parent
fe047235
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
README.md
README.md
+6
-0
No files found.
README.md
View file @
9d002e61
...
@@ -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'
]
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment