terminal-gateway 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,7 +53,12 @@ __onSale():__ This method allows you to do sale transactions. user needs to call
|
|
|
53
53
|
<br />
|
|
54
54
|
|
|
55
55
|
``` javascript
|
|
56
|
-
terminal.onSale({
|
|
56
|
+
terminal.onSale({
|
|
57
|
+
amount: '0.01',
|
|
58
|
+
type: 'SHOWQR',
|
|
59
|
+
currency: 'USD',
|
|
60
|
+
invoice: 'INV0011620291635'
|
|
61
|
+
});
|
|
57
62
|
```
|
|
58
63
|
## Enquiry transaction
|
|
59
64
|
__onEnquiry():__ This method allows you to receive the response back with the result status of the transaction whether it's successful or failed. It is required a parameter:
|
|
@@ -62,8 +67,12 @@ __onEnquiry():__ This method allows you to receive the response back with the re
|
|
|
62
67
|
| --- | --- | --- | --- | --- |
|
|
63
68
|
| invoice | String | Yes | | The invoice number must be unique. example: `INV0011620291635`|
|
|
64
69
|
|
|
70
|
+
<br />
|
|
71
|
+
|
|
65
72
|
``` javascript
|
|
66
|
-
terminal.onEnquiry({
|
|
73
|
+
terminal.onEnquiry({
|
|
74
|
+
invoice: 'INV0011620291635'
|
|
75
|
+
});
|
|
67
76
|
```
|
|
68
77
|
|
|
69
78
|
<br />
|