mmpay-browser-sdk 1.0.5 → 1.0.6

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 CHANGED
@@ -96,8 +96,16 @@ MMPayApp.createPayment({
96
96
  });
97
97
  ```
98
98
 
99
-
100
-
99
+ ### Error Codes
100
+
101
+ | Code | Description |
102
+ | :--- | :--- |
103
+ | **`R000`** | Internal Server Error ( Talk to our support immediately fot this ) |
104
+ | **`R001`** | Wrong publishable Key |
105
+ | **`R002`** | Key Not Live Yet |
106
+ | **`R003`** | Origin Whitelist Not Allowed |
107
+ | **`R004`** | Origin Requires SSL |
108
+ | **`429`** | Ratelimit hit only 1000 request / minute allowed |
101
109
 
102
110
 
103
111
  ### 3. Angular Framework Implementation
package/dist/cjs/index.js CHANGED
@@ -490,7 +490,7 @@ class MMPaySDK {
490
490
  if (typeof QRious !== 'undefined' && canvas) {
491
491
  new QRious({
492
492
  element: canvas,
493
- value: qrData,
493
+ value: unescape(encodeURIComponent(qrData)),
494
494
  size: this.QR_SIZE,
495
495
  padding: 15,
496
496
  level: 'H'
package/dist/esm/index.js CHANGED
@@ -487,7 +487,7 @@ export class MMPaySDK {
487
487
  if (typeof QRious !== 'undefined' && canvas) {
488
488
  new QRious({
489
489
  element: canvas,
490
- value: qrData,
490
+ value: unescape(encodeURIComponent(qrData)),
491
491
  size: this.QR_SIZE,
492
492
  padding: 15,
493
493
  level: 'H'
package/dist/mmpay-sdk.js CHANGED
@@ -493,7 +493,7 @@
493
493
  if (typeof QRious !== 'undefined' && canvas) {
494
494
  new QRious({
495
495
  element: canvas,
496
- value: qrData,
496
+ value: unescape(encodeURIComponent(qrData)),
497
497
  size: this.QR_SIZE,
498
498
  padding: 15,
499
499
  level: 'H'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mmpay-browser-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "JavaScript SDK for integrating the MMQR Merchant and Redirect payment gateway",
5
5
  "keywords": [
6
6
  "MMQR",
package/src/index.ts CHANGED
@@ -564,7 +564,7 @@ export class MMPaySDK {
564
564
  if (typeof QRious !== 'undefined' && canvas) {
565
565
  new QRious({
566
566
  element: canvas,
567
- value: qrData,
567
+ value: unescape(encodeURIComponent(qrData)),
568
568
  size: this.QR_SIZE,
569
569
  padding: 15,
570
570
  level: 'H'