@rebilly/instruments 3.26.0-beta.0 → 3.26.2-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/instruments",
3
- "version": "3.26.0-beta.0",
3
+ "version": "3.26.2-beta.0",
4
4
  "author": "Rebilly",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1255,6 +1255,25 @@
1255
1255
  }
1256
1256
  ]
1257
1257
  },
1258
+ {
1259
+ "apiName": "KakaoPay",
1260
+ "name": "KakaoPay",
1261
+ "landscapeLogo": null,
1262
+ "portraitLogo": null,
1263
+ "summary": "KakaoPay is a mobile payment and digital wallet service by Kakao and based in South Korea. It enables users make mobile payments and online transactions.\n",
1264
+ "description": "KakaoPay is a mobile payment and digital wallet service by Kakao and based in South Korea. It enables users make mobile payments and online transactions.\n",
1265
+ "countries": {
1266
+ "mode": "unknown",
1267
+ "values": []
1268
+ },
1269
+ "storefrontEnabled": false,
1270
+ "_links": [
1271
+ {
1272
+ "rel": "self",
1273
+ "href": "https://api.rebilly.com/payment-methods/KakaoPay"
1274
+ }
1275
+ ]
1276
+ },
1258
1277
  {
1259
1278
  "apiName": "Khelocard",
1260
1279
  "name": "Khelocard",
@@ -1931,6 +1950,25 @@
1931
1950
  }
1932
1951
  ]
1933
1952
  },
1953
+ {
1954
+ "apiName": "Payco",
1955
+ "name": "Payco",
1956
+ "landscapeLogo": null,
1957
+ "portraitLogo": null,
1958
+ "summary": "Payco is one of the most popular forms of payment in South Korea and offers your shoppers convenience and familiarity when shopping online.\n",
1959
+ "description": "Payco is one of the most popular forms of payment in South Korea and offers your shoppers convenience and familiarity when shopping online.\n",
1960
+ "countries": {
1961
+ "mode": "unknown",
1962
+ "values": []
1963
+ },
1964
+ "storefrontEnabled": false,
1965
+ "_links": [
1966
+ {
1967
+ "rel": "self",
1968
+ "href": "https://api.rebilly.com/payment-methods/Payco"
1969
+ }
1970
+ ]
1971
+ },
1934
1972
  {
1935
1973
  "apiName": "Payeer",
1936
1974
  "name": "Payeer",
@@ -2330,6 +2368,25 @@
2330
2368
  }
2331
2369
  ]
2332
2370
  },
2371
+ {
2372
+ "apiName": "Samsung Pay",
2373
+ "name": "Samsung Pay",
2374
+ "landscapeLogo": null,
2375
+ "portraitLogo": null,
2376
+ "summary": "Samsung Pay is a mobile payment and digital wallet service by Samsung Electronics that enables users to make payments using\ncompatible phones and other Samsung-produced devices.\n",
2377
+ "description": "Samsung Pay is a mobile payment and digital wallet service by Samsung Electronics that enables users to make payments using\ncompatible phones and other Samsung-produced devices.\n",
2378
+ "countries": {
2379
+ "mode": "unknown",
2380
+ "values": []
2381
+ },
2382
+ "storefrontEnabled": false,
2383
+ "_links": [
2384
+ {
2385
+ "rel": "self",
2386
+ "href": "https://api.rebilly.com/payment-methods/Samsung%20Pay"
2387
+ }
2388
+ ]
2389
+ },
2333
2390
  {
2334
2391
  "apiName": "Siirto",
2335
2392
  "name": "Siirto",
@@ -2712,6 +2769,25 @@
2712
2769
  }
2713
2770
  ]
2714
2771
  },
2772
+ {
2773
+ "apiName": "Wallet88",
2774
+ "name": "Wallet88",
2775
+ "landscapeLogo": null,
2776
+ "portraitLogo": null,
2777
+ "summary": "Wallet88 payment method.",
2778
+ "description": "Wallet88 payment method.",
2779
+ "countries": {
2780
+ "mode": "unknown",
2781
+ "values": []
2782
+ },
2783
+ "storefrontEnabled": true,
2784
+ "_links": [
2785
+ {
2786
+ "rel": "self",
2787
+ "href": "https://api.rebilly.com/payment-methods/Wallet88"
2788
+ }
2789
+ ]
2790
+ },
2715
2791
  {
2716
2792
  "apiName": "WeChat Pay",
2717
2793
  "name": "WeChat Pay",
@@ -28,13 +28,13 @@ import { showError } from '../../views/errors';
28
28
  *
29
29
  * @typedef {object} GooglePayDisplayOptions
30
30
  * @property {"back" | "white"} [buttonColor=black] - Color of google pay button
31
- * @property {"short" | "long"} [buttonType=short] - The length of the button
32
- * @property {string} [buttonHeight=44px] - The value and units of the button to match other payment buttons
31
+ * @property {"book" | "buy" | "checkout" | "donate" | "order" | "pay" | "plain" | "subscribe" | "short" | "long"} [buttonType=plain] - The length of the button
32
+ * @property {string} [buttonHeight=48px] - The value and units of the button to match other payment buttons
33
33
  *
34
34
  * @typedef {object} ApplePayDisplayOptions
35
35
  * @property {"back" | "white"} [buttonColor=black] - Color of apple pay button
36
36
  * @property {"short" | "long"} [buttonType=short] - The length of the button
37
- * @property {string} [buttonHeight=44px] - The value and units of the button to match other payment buttons
37
+ * @property {string} [buttonHeight=48px] - The value and units of the button to match other payment buttons
38
38
  *
39
39
  * @typedef {object} ApplePayMerchantOptions
40
40
  * @property {string} merchantName - The name of the merchant store.
@@ -22,22 +22,22 @@ export const defaults = {
22
22
  googlePay: {
23
23
  displayOptions: {
24
24
  buttonColor: 'black',
25
- buttonType: 'short',
26
- buttonHeight: '44px'
25
+ buttonType: 'plain',
26
+ buttonHeight: '48px'
27
27
  }
28
28
  },
29
29
  applePay: {
30
30
  displayOptions: {
31
31
  buttonColor: 'black',
32
32
  buttonType: 'plain',
33
- buttonHeight: '44px'
33
+ buttonHeight: '48px'
34
34
  }
35
35
  },
36
36
  paymentCard: {
37
37
  popup: false
38
38
  },
39
39
  paypal: {
40
- buttonHeight: 44,
40
+ buttonHeight: 48,
41
41
  }
42
42
  },
43
43
  transactionType: 'purchase',
@@ -92,7 +92,7 @@ export const vars = (theme) => `
92
92
  background-size: 200% 100%;
93
93
  -webkit-animation: 1.5s rebillyExpressShine linear infinite;
94
94
  animation: 1.5s rebillyExpressShine linear infinite;
95
- height: 44px;
95
+ height: 48px;
96
96
  }
97
97
 
98
98
  .rebilly-instruments-express-methods .rebilly-instruments-express-methods-container > *:last-child {
@@ -145,6 +145,10 @@ export const vars = (theme) => `
145
145
  white-space: nowrap;
146
146
  }
147
147
 
148
+ .rebilly-instruments-express-methods .rebilly-instruments-google-pay-method {
149
+ border-radius: 100px;
150
+ }
151
+
148
152
  @media (max-width: 600px) {
149
153
  .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container {
150
154
  -webkit-box-orient: vertical;
@@ -13,15 +13,15 @@ describe('generateDigitalWallet', () => {
13
13
  googlePay: {
14
14
  displayOptions: {
15
15
  buttonColor: 'black',
16
- buttonType: 'short',
17
- buttonHeight: '44px'
16
+ buttonType: 'plain',
17
+ buttonHeight: '48px'
18
18
  }
19
19
  },
20
20
  applePay: {
21
21
  displayOptions: {
22
22
  buttonColor: 'black',
23
23
  buttonType: 'buy',
24
- buttonHeight: '44px'
24
+ buttonHeight: '48px'
25
25
  },
26
26
  merchantConfig: {
27
27
  merchantName: 'Test Store Name',
@@ -76,8 +76,8 @@ describe('generateDigitalWallet', () => {
76
76
  },
77
77
  googlePayDisplayOptions: {
78
78
  buttonColor: 'black',
79
- buttonType: 'short',
80
- buttonHeight: '44px'
79
+ buttonType: 'plain',
80
+ buttonHeight: '48px'
81
81
  }
82
82
  }
83
83
  }
@@ -120,7 +120,7 @@ describe('generateDigitalWallet', () => {
120
120
  applePayDisplayOptions: {
121
121
  buttonColor: 'black',
122
122
  buttonType: 'buy',
123
- buttonHeight: '44px'
123
+ buttonHeight: '48px'
124
124
  }
125
125
  }
126
126
  }
@@ -113,6 +113,7 @@ export async function mountMethodSelector() {
113
113
 
114
114
  iframes.form = iframe;
115
115
  } else {
116
+ state.loader.stopLoading({id: 'rebilly-instruments-form'});
116
117
  METHODS_CONTAINER.style.display = 'none';
117
118
  document.querySelectorAll('[data-rebilly-instruments="divider"]')
118
119
  .forEach(el => { el.style.display = 'none' });