terminal-gateway 1.0.14 → 1.0.16
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 +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,19 +44,21 @@ $ yarn add terminal-gateway
|
|
|
44
44
|
```
|
|
45
45
|
## Sale transaction
|
|
46
46
|
__onSale():__ This method allows you to do sale transactions. user needs to call this function to get the result failed or successful. It is required four parameters:
|
|
47
|
-
| Parameter name | Data type |
|
|
47
|
+
| Parameter name | Data type | Require | Default | Description |
|
|
48
48
|
| --- | --- | --- | --- | --- |
|
|
49
49
|
| amount | String | Yes | 0 | amount define transaction |
|
|
50
50
|
| type | String | Yes | SHOWQR | SHOWQR: sale by screen QR codeEDC: sale by card |
|
|
51
51
|
| invoice | String | Yes | The invoice number must be unique. Example: INV0011620291635 | |
|
|
52
|
-
|
|
52
|
+
|
|
53
|
+
<br />
|
|
54
|
+
|
|
53
55
|
``` javascript
|
|
54
56
|
terminal.onSale({amount: '0.01', type: 'SHOWQR', currency: 'USD', invoice: 'INV0011620291635'});
|
|
55
57
|
```
|
|
56
58
|
## Enquiry transaction
|
|
57
59
|
__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:
|
|
58
60
|
|
|
59
|
-
| Parameter name | Data type | Require | Default |Description |
|
|
61
|
+
| Parameter name | Data type | Require | Default | Description |
|
|
60
62
|
| --- | --- | --- | --- | --- |
|
|
61
63
|
| invoice | String | Yes | | The invoice number must be unique. example: `INV0011620291635`|
|
|
62
64
|
|
|
@@ -64,6 +66,8 @@ __onEnquiry():__ This method allows you to receive the response back with the re
|
|
|
64
66
|
terminal.onEnquiry({invoice: 'INV0011620291635'});
|
|
65
67
|
```
|
|
66
68
|
|
|
69
|
+
<br />
|
|
70
|
+
|
|
67
71
|
## Void transaction
|
|
68
72
|
__onVoid():__ This method allows you to void the transaction. It is required a parameter:
|
|
69
73
|
| Parameter name | Data type | Require | Default |Description |
|