terminal-gateway 1.0.13 → 1.0.15

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.
Files changed (2) hide show
  1. package/README.md +3 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -42,14 +42,13 @@ $ yarn add terminal-gateway
42
42
  onError: () => {}
43
43
  });
44
44
  ```
45
-
46
45
  ## Sale transaction
47
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:
48
47
  | Parameter name | Data type | Require | Default | Description |
49
48
  | --- | --- | --- | --- | --- |
50
49
  | amount | String | Yes | 0 | amount define transaction |
51
50
  | type | String | Yes | SHOWQR | SHOWQR: sale by screen QR codeEDC: sale by card |
52
- | invoice | String | Yes | The invoice number must be unique. Example: INV0011620291635 |
51
+ | invoice | String | Yes | The invoice number must be unique. Example: INV0011620291635 | |
53
52
  <br>
54
53
  ``` javascript
55
54
  terminal.onSale({amount: '0.01', type: 'SHOWQR', currency: 'USD', invoice: 'INV0011620291635'});
@@ -59,8 +58,8 @@ __onEnquiry():__ This method allows you to receive the response back with the re
59
58
 
60
59
  | Parameter name | Data type | Require | Default |Description |
61
60
  | --- | --- | --- | --- | --- |
62
- | invoice | String | Yes | | The invoice number must be unique. example: `INV0011620291635`|
63
- <br>
61
+ | invoice | String | Yes | | The invoice number must be unique. example: `INV0011620291635`|\
62
+
64
63
  ``` javascript
65
64
  terminal.onEnquiry({invoice: 'INV0011620291635'});
66
65
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terminal-gateway",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "POS SDK is a library that allows users to perform sale transactions on a terminal from a web browser.",
5
5
  "main": "index.js",
6
6
  "author": "",