@wearejh/m2-pwa-adyen 0.11.3 → 0.13.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.13.2](https://github.com/WeareJH/mage-mono/compare/v0.13.0...v0.13.2) (2022-04-04)
7
+
8
+ **Note:** Version bump only for package @wearejh/m2-pwa-adyen
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.13.1](https://github.com/WeareJH/mage-mono/compare/v0.13.0...v0.13.1) (2022-04-04)
15
+
16
+ **Note:** Version bump only for package @wearejh/m2-pwa-adyen
17
+
18
+
19
+
20
+
21
+
22
+ # [0.13.0](https://github.com/WeareJH/mage-mono/compare/v0.12.0...v0.13.0) (2021-12-08)
23
+
24
+
25
+ ### Features
26
+
27
+ * **m2-pwa-adyen:** add 3DS2 challenge and fingerprint components to Google Pay ([#69](https://github.com/WeareJH/mage-mono/issues/69)) ([0ad27c7](https://github.com/WeareJH/mage-mono/commit/0ad27c7762000af007b8e9809e5f1822027a74da))
28
+
29
+
30
+
31
+
32
+
33
+ # [0.12.0](https://github.com/WeareJH/mage-mono/compare/v0.11.3...v0.12.0) (2021-12-02)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **`m2-pwa-adyen`:** Google Pay 3DS1 Authorization ([#68](https://github.com/WeareJH/mage-mono/issues/68)) ([83dec89](https://github.com/WeareJH/mage-mono/commit/83dec89f8facd46efa4916a0a276eb98ab5cbec0))
39
+
40
+
41
+
42
+
43
+
6
44
  ## [0.11.3](https://github.com/WeareJH/mage-mono/compare/v0.11.2...v0.11.3) (2021-10-14)
7
45
 
8
46
  **Note:** Version bump only for package @wearejh/m2-pwa-adyen
@@ -61,6 +61,9 @@ export function processAdyenResponse(response?: AdyenResponseParams, orderId?: s
61
61
  case PaymentMethodTypes.Card:
62
62
  return of(AdyenMessage(ActionTypes.ActionThreeDS1Redirect, action));
63
63
 
64
+ case PaymentMethodTypes.GooglePay:
65
+ return of(AdyenMessage(ActionTypes.ActionThreeDS1Redirect, action));
66
+
64
67
  case PaymentMethodTypes.Klarna:
65
68
  case PaymentMethodTypes.KlarnaOverTime:
66
69
  return of(
@@ -5,10 +5,9 @@ import { useDispatch } from 'react-redux';
5
5
  import { useAdyen } from '../../AdyenProvider';
6
6
  import { ActionTypes, AdyenMessage } from '../../adyen.actions';
7
7
  import { AdyenSteps, MagentoPaymentTypes } from '../../adyen.types';
8
-
9
- import { ThreeDS1Redirect } from './ThreeDS1Redirect';
10
- import { ThreeDS2Challenge } from './ThreeDS2Challenge';
11
- import { ThreeDS2Fingerprint } from './ThreeDS2Fingerprint';
8
+ import { ThreeDS1Redirect } from '../3DS/ThreeDS1Redirect';
9
+ import { ThreeDS2Challenge } from '../3DS/ThreeDS2Challenge';
10
+ import { ThreeDS2Fingerprint } from '../3DS/ThreeDS2Fingerprint';
12
11
 
13
12
  /**
14
13
  * React warapper component for the Adyen Card component.
@@ -5,7 +5,10 @@ import { useDispatch } from 'react-redux';
5
5
 
6
6
  import { useAdyen } from '../../AdyenProvider';
7
7
  import { ActionTypes, AdyenMessage } from '../../adyen.actions';
8
- import { MagentoPaymentTypes } from '../../adyen.types';
8
+ import { AdyenSteps, MagentoPaymentTypes } from '../../adyen.types';
9
+ import { ThreeDS1Redirect } from '../3DS/ThreeDS1Redirect';
10
+ import { ThreeDS2Challenge } from '../3DS/ThreeDS2Challenge';
11
+ import { ThreeDS2Fingerprint } from '../3DS/ThreeDS2Fingerprint';
9
12
 
10
13
  /**
11
14
  * React warapper component for the Adyen Google Pay component.
@@ -27,7 +30,7 @@ import { MagentoPaymentTypes } from '../../adyen.types';
27
30
  */
28
31
 
29
32
  export function GooglePayMethod() {
30
- const { adyenCheckout, attemptPayment, waitForPaymentFormSubmit } = useAdyen();
33
+ const { adyenCheckout, attemptPayment, waitForPaymentFormSubmit, step } = useAdyen();
31
34
 
32
35
  /**
33
36
  * The HTML Div element reference the Adyen Apple Pay
@@ -148,6 +151,9 @@ export function GooglePayMethod() {
148
151
  }}
149
152
  type="submit"
150
153
  />
154
+ {step === AdyenSteps.ThreeDS1Redirect && <ThreeDS1Redirect />}
155
+ {step === AdyenSteps.ThreeDS2Challenge && <ThreeDS2Challenge />}
156
+ {step === AdyenSteps.ThreeDS2Fingerprint && <ThreeDS2Fingerprint />}
151
157
  </>
152
158
  );
153
159
  }
@@ -13,20 +13,17 @@
13
13
  <!-- Description -->
14
14
  <p align="center">Adyen <a href="https://docs.adyen.com/payment-methods/google-pay/web-component">Google Pay</a> component</p>
15
15
 
16
- <!-- Badges -->
17
- <!-- <p align="center">
18
- <a href="https://awesome.re">
19
- <img src="https://awesome.re/badge-flat2.svg"
20
- alt="Awesome Lists">
21
- </a>
22
- </p> -->
23
-
16
+ <br/>
24
17
 
25
18
  ## :technologist: Development
26
19
 
27
20
  ### :package: Environment Dependencies
28
21
 
29
- - Signed in to a valid Google account.
22
+ - Signed in with any Google account.
23
+ - It is recommended to use your JH Google account.
24
+ - Join the [test card suite group](https://groups.google.com/forum/#!forum/googlepay-test-mode-stub-data) to enable Demo cards on your account.
25
+
26
+ <br/>
30
27
 
31
28
  ## :credit_card: Payment Process
32
29
 
@@ -42,8 +39,12 @@
42
39
  to Magento to complete the order.
43
40
  5. The Magento response is processed by the `adyenPayment` epic.
44
41
 
42
+ <br/>
45
43
 
46
44
  ## :vulcan_salute: Useful Resources
47
45
 
48
- - [Adyen Google Pay](https://docs.adyen.com/payment-methods/google-pay) - Adyen documentation for Google Pay web component.
49
- - [Adyen Google Pay Code](https://github.com/Adyen/adyen-web/tree/master/packages/lib/src/components/GooglePay) - Adyen Web codebase for Google Pay.
46
+ - [Adyen Google Pay](https://docs.adyen.com/payment-methods/google-pay) - Adyen documentation for Google Pay web component.
47
+ - [Adyen Google Pay Code](https://github.com/Adyen/adyen-web/tree/master/packages/lib/src/components/GooglePay) - Adyen Web codebase for Google Pay.
48
+ - [Google Pay Test Card Suite](https://developers.google.com/pay/api/web/guides/resources/test-card-suite) - Documentation on how to use demo cards in Google Pay.
49
+
50
+ <br/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wearejh/m2-pwa-adyen",
3
- "version": "0.11.3",
3
+ "version": "0.13.2",
4
4
  "description": "> TODO: description",
5
5
  "author": "Shane Osbourne <shane.osbourne8@gmail.com>",
6
6
  "homepage": "",
@@ -18,17 +18,17 @@
18
18
  ],
19
19
  "scripts": {},
20
20
  "devDependencies": {
21
- "@reach/dialog": "^0.8.2"
21
+ "@reach/dialog": "0.8.2"
22
22
  },
23
23
  "dependencies": {
24
24
  "@adyen/adyen-web": "4.5.0",
25
- "@wearejh/m2-pwa-cart": "^0.11.3",
26
- "@wearejh/m2-pwa-checkout": "^0.11.3",
27
- "@wearejh/m2-pwa-engine": "^0.11.3",
28
- "@wearejh/react-hooks": "^0.11.3",
29
- "@wearejh/rx-form": "^0.11.3",
30
- "@wearejh/swagger-rxjs": "^0.11.3",
25
+ "@wearejh/m2-pwa-cart": "^0.13.2",
26
+ "@wearejh/m2-pwa-checkout": "^0.13.2",
27
+ "@wearejh/m2-pwa-engine": "^0.13.2",
28
+ "@wearejh/react-hooks": "^0.13.2",
29
+ "@wearejh/rx-form": "^0.13.2",
30
+ "@wearejh/swagger-rxjs": "^0.13.2",
31
31
  "load-js": "^3.0.3"
32
32
  },
33
- "gitHead": "638128a4e8089442bd9b32f603fdd069a172e7c1"
33
+ "gitHead": "a17286833b7fd91270b8fa60d65427b9b931dd81"
34
34
  }