@graphcommerce/magento-payment-braintree 3.0.2 → 3.0.5
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 +96 -107
- package/methods/braintree/PaymentMethodOptions.tsx +7 -8
- package/methods/braintree/index.ts +1 -1
- package/methods/braintree_local_payments/PaymentMethodOptions.tsx +2 -3
- package/methods/braintree_local_payments/index.ts +1 -1
- package/package.json +18 -18
- package/{_playwright/braintree.spec.ts → test/braintree.playwright.ts} +7 -7
- package/{_playwright/braintree_local_payments.spec.ts → test/braintree_local_payments.playwright.ts} +6 -6
package/CHANGELOG.md
CHANGED
@@ -1,33 +1,65 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 3.0.5
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
|
8
|
+
|
9
|
+
- Updated dependencies [[`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a)]:
|
10
|
+
- @graphcommerce/graphql@3.0.6
|
11
|
+
- @graphcommerce/next-ui@4.5.0
|
12
|
+
- @graphcommerce/image@3.1.2
|
13
|
+
- @graphcommerce/magento-cart@4.2.2
|
14
|
+
- @graphcommerce/magento-cart-payment-method@3.0.6
|
15
|
+
- @graphcommerce/magento-store@4.1.4
|
16
|
+
- @graphcommerce/react-hook-form@3.0.6
|
17
|
+
|
18
|
+
## 3.0.4
|
19
|
+
|
20
|
+
### Patch Changes
|
21
|
+
|
22
|
+
- [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655) Thanks [@paales](https://github.com/paales)! - All default exports are now named exports internally and all `index.tsx` are renamed to the component name.
|
23
|
+
|
24
|
+
* [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
|
25
|
+
|
26
|
+
* Updated dependencies [[`3d63b39f7`](https://github.com/ho-nl/m2-pwa/commit/3d63b39f7e330d1827a32dba782667d7b21adaba), [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655), [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef)]:
|
27
|
+
- @graphcommerce/next-ui@4.2.4
|
28
|
+
- @graphcommerce/graphql@3.0.4
|
29
|
+
- @graphcommerce/image@3.1.1
|
30
|
+
- @graphcommerce/magento-cart@4.1.4
|
31
|
+
- @graphcommerce/magento-cart-payment-method@3.0.5
|
32
|
+
- @graphcommerce/magento-store@4.1.2
|
33
|
+
- @graphcommerce/react-hook-form@3.0.4
|
34
|
+
|
35
|
+
## 3.0.3
|
36
|
+
|
37
|
+
### Patch Changes
|
38
|
+
|
39
|
+
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
|
40
|
+
|
41
|
+
* [#1278](https://github.com/ho-nl/m2-pwa/pull/1278) [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
|
42
|
+
|
43
|
+
* Updated dependencies [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96), [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20), [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d), [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
|
44
|
+
- @graphcommerce/graphql@3.0.3
|
45
|
+
- @graphcommerce/image@3.1.0
|
46
|
+
- @graphcommerce/magento-cart@4.1.2
|
47
|
+
- @graphcommerce/magento-cart-payment-method@3.0.3
|
48
|
+
- @graphcommerce/magento-store@4.0.3
|
49
|
+
- @graphcommerce/next-ui@4.1.2
|
50
|
+
- @graphcommerce/react-hook-form@3.0.3
|
51
|
+
|
3
52
|
## 3.0.2
|
4
53
|
|
5
54
|
### Patch Changes
|
6
55
|
|
7
|
-
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
* [
|
14
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
15
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
16
|
-
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
17
|
-
implementing
|
18
|
-
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
19
|
-
soon.
|
20
|
-
|
21
|
-
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
22
|
-
frontend to be able to revalidate pages manually.
|
23
|
-
|
24
|
-
* Updated dependencies
|
25
|
-
[[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
|
26
|
-
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
|
27
|
-
[`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
|
28
|
-
[`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
|
29
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
|
30
|
-
[`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
|
56
|
+
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2) Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from `dependencies` to `peerDependencies`. The result of this is that there will be significantly less duplicate packages in the node_modules folders.
|
57
|
+
|
58
|
+
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d) Thanks [@paales](https://github.com/paales)! - Upgraded to [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be implementing [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta) soon.
|
59
|
+
|
60
|
+
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the frontend to be able to revalidate pages manually.
|
61
|
+
|
62
|
+
* Updated dependencies [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7), [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2), [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b), [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275), [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d), [`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
|
31
63
|
- @graphcommerce/magento-cart@4.1.1
|
32
64
|
- @graphcommerce/magento-cart-payment-method@3.0.2
|
33
65
|
- @graphcommerce/next-ui@4.1.1
|
@@ -40,11 +72,8 @@
|
|
40
72
|
|
41
73
|
### Patch Changes
|
42
74
|
|
43
|
-
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
44
|
-
|
45
|
-
so that the packages link to back to the website and repository
|
46
|
-
- Updated dependencies
|
47
|
-
[[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
75
|
+
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514) Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files, so that the packages link to back to the website and repository
|
76
|
+
- Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
48
77
|
- @graphcommerce/graphql@3.0.1
|
49
78
|
- @graphcommerce/image@3.0.1
|
50
79
|
- @graphcommerce/magento-cart@4.0.1
|
@@ -57,14 +86,11 @@
|
|
57
86
|
|
58
87
|
### Major Changes
|
59
88
|
|
60
|
-
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
|
61
|
-
[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
|
62
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
89
|
+
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258) [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05) Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
63
90
|
|
64
91
|
### Patch Changes
|
65
92
|
|
66
|
-
- Updated dependencies
|
67
|
-
[[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
93
|
+
- Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
68
94
|
- @graphcommerce/graphql@3.0.0
|
69
95
|
- @graphcommerce/image@3.0.0
|
70
96
|
- @graphcommerce/magento-cart@4.0.0
|
@@ -73,29 +99,25 @@
|
|
73
99
|
- @graphcommerce/next-ui@4.0.0
|
74
100
|
- @graphcommerce/react-hook-form@3.0.0
|
75
101
|
|
76
|
-
All notable changes to this project will be documented in this file. See
|
77
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
102
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
78
103
|
|
79
104
|
# [2.106.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.105.32...@graphcommerce/magento-payment-braintree@2.106.0) (2021-11-12)
|
80
105
|
|
81
106
|
### Features
|
82
107
|
|
83
|
-
- added tons of translations
|
84
|
-
([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
108
|
+
- added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
85
109
|
|
86
110
|
# [2.105.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.104.40...@graphcommerce/magento-payment-braintree@2.105.0) (2021-10-27)
|
87
111
|
|
88
112
|
### Features
|
89
113
|
|
90
|
-
- **nextjs:** upgraded to nextjs 12
|
91
|
-
([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
114
|
+
- **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
92
115
|
|
93
116
|
## [2.104.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.104.6...@graphcommerce/magento-payment-braintree@2.104.7) (2021-09-30)
|
94
117
|
|
95
118
|
### Bug Fixes
|
96
119
|
|
97
|
-
- braintree typescript warning
|
98
|
-
([8bb6a8a](https://github.com/ho-nl/m2-pwa/commit/8bb6a8a7bdd4d90cb1486d88263971143a571fa1))
|
120
|
+
- braintree typescript warning ([8bb6a8a](https://github.com/ho-nl/m2-pwa/commit/8bb6a8a7bdd4d90cb1486d88263971143a571fa1))
|
99
121
|
|
100
122
|
## [2.104.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.104.0...@graphcommerce/magento-payment-braintree@2.104.1) (2021-09-27)
|
101
123
|
|
@@ -105,115 +127,82 @@ All notable changes to this project will be documented in this file. See
|
|
105
127
|
|
106
128
|
### Bug Fixes
|
107
129
|
|
108
|
-
- **braintree:** allow for proper initialization of braintree client libraries
|
109
|
-
|
110
|
-
-
|
111
|
-
|
112
|
-
-
|
113
|
-
|
114
|
-
- paymentDone removed in favor of a more simple clearCart method
|
115
|
-
([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
116
|
-
- **playwright:** checkout button was renamed
|
117
|
-
([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
|
118
|
-
- rename NextButton to Button, change imports
|
119
|
-
([976adb0](https://github.com/ho-nl/m2-pwa/commit/976adb0bf906310d1efce888dcc9be1e28ce0f1b))
|
130
|
+
- **braintree:** allow for proper initialization of braintree client libraries ([af87d1c](https://github.com/ho-nl/m2-pwa/commit/af87d1ccde1378127b9ef76b197d3946a9c7ca92))
|
131
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
132
|
+
- implement next-ui barrel imports ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
|
133
|
+
- paymentDone removed in favor of a more simple clearCart method ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
134
|
+
- **playwright:** checkout button was renamed ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
|
135
|
+
- rename NextButton to Button, change imports ([976adb0](https://github.com/ho-nl/m2-pwa/commit/976adb0bf906310d1efce888dcc9be1e28ce0f1b))
|
120
136
|
|
121
137
|
### Features
|
122
138
|
|
123
|
-
- ability to place order after the payment has completed
|
124
|
-
|
125
|
-
- added
|
126
|
-
|
127
|
-
-
|
128
|
-
|
129
|
-
- **
|
130
|
-
|
131
|
-
-
|
132
|
-
|
133
|
-
-
|
134
|
-
|
135
|
-
-
|
136
|
-
|
137
|
-
-
|
138
|
-
|
139
|
-
- implemented checkmo payment method
|
140
|
-
([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
|
141
|
-
- next.js 11
|
142
|
-
([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
143
|
-
- **payments:** make PaymentMethodContext injectable
|
144
|
-
([68c664a](https://github.com/ho-nl/m2-pwa/commit/68c664adb7eb6eb86d7a819213deb87152392347))
|
145
|
-
- **playwright:** added new playwright package to enable browser testing
|
146
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
147
|
-
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
148
|
-
[@reachdigital](https://github.com/reachdigital)
|
149
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
150
|
-
- upgrade to node 14
|
151
|
-
([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
|
152
|
-
- upgraded to nextjs 11
|
153
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
154
|
-
- working on payment implementation contract
|
155
|
-
([bc3a41a](https://github.com/ho-nl/m2-pwa/commit/bc3a41a3de25c197bd65bdb68640c82f83c4698a))
|
139
|
+
- ability to place order after the payment has completed ([8fd479a](https://github.com/ho-nl/m2-pwa/commit/8fd479aded46ec1ba61b5dc42eccf4aaedff6c0c))
|
140
|
+
- added braintree libraries for checkout process ([970ae9a](https://github.com/ho-nl/m2-pwa/commit/970ae9a03510e6e6851ffb81758ab71daedc7096))
|
141
|
+
- added PaymentModule API and persistent selection of form fields ([b67f735](https://github.com/ho-nl/m2-pwa/commit/b67f7358f62edd56a8232d625ecee56af350bfb8))
|
142
|
+
- **braintree:** very basic implementation of credit card ([bb24f7e](https://github.com/ho-nl/m2-pwa/commit/bb24f7ec0577d018f0aff9b50de14f219e7504c5))
|
143
|
+
- checkout/payment page added to checkout ([7e54cd6](https://github.com/ho-nl/m2-pwa/commit/7e54cd68685543ded27b285f15f6d9729b969a02))
|
144
|
+
- created stacked-pages package ([d86008e](https://github.com/ho-nl/m2-pwa/commit/d86008ee659ccb25b194a41d624b394a1ddbd088))
|
145
|
+
- **graphql:** introduced new graphql package that holds all generated files ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
|
146
|
+
- **image:** introduced completely rewritten Image component ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
|
147
|
+
- implemented checkmo payment method ([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
|
148
|
+
- next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
149
|
+
- **payments:** make PaymentMethodContext injectable ([68c664a](https://github.com/ho-nl/m2-pwa/commit/68c664adb7eb6eb86d7a819213deb87152392347))
|
150
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
151
|
+
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
152
|
+
- upgrade to node 14 ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
|
153
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
154
|
+
- working on payment implementation contract ([bc3a41a](https://github.com/ho-nl/m2-pwa/commit/bc3a41a3de25c197bd65bdb68640c82f83c4698a))
|
156
155
|
|
157
156
|
### Reverts
|
158
157
|
|
159
|
-
- Revert "chore: upgrade @apollo/client"
|
160
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
158
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
161
159
|
|
162
160
|
# Change Log
|
163
161
|
|
164
|
-
All notable changes to this project will be documented in this file. See
|
165
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
162
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
166
163
|
|
167
164
|
## [2.103.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.103.6...@graphcommerce/magento-payment-braintree@2.103.7) (2021-08-17)
|
168
165
|
|
169
166
|
### Bug Fixes
|
170
167
|
|
171
|
-
- **playwright:** checkout button was renamed
|
172
|
-
([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
|
168
|
+
- **playwright:** checkout button was renamed ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
|
173
169
|
|
174
170
|
# [2.103.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.102.7...@graphcommerce/magento-payment-braintree@2.103.0) (2021-08-12)
|
175
171
|
|
176
172
|
### Features
|
177
173
|
|
178
|
-
- upgraded to nextjs 11
|
179
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
174
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
180
175
|
|
181
176
|
## [2.102.6](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.102.5...@graphcommerce/magento-payment-braintree@2.102.6) (2021-08-09)
|
182
177
|
|
183
178
|
### Reverts
|
184
179
|
|
185
|
-
- Revert "chore: upgrade @apollo/client"
|
186
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
180
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
187
181
|
|
188
182
|
# [2.102.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.101.2...@graphcommerce/magento-payment-braintree@2.102.0) (2021-07-29)
|
189
183
|
|
190
184
|
### Bug Fixes
|
191
185
|
|
192
|
-
- paymentDone removed in favor of a more simple clearCart method
|
193
|
-
([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
186
|
+
- paymentDone removed in favor of a more simple clearCart method ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
194
187
|
|
195
188
|
### Features
|
196
189
|
|
197
|
-
- **braintree:** very basic implementation of credit card
|
198
|
-
([bb24f7e](https://github.com/ho-nl/m2-pwa/commit/bb24f7ec0577d018f0aff9b50de14f219e7504c5))
|
190
|
+
- **braintree:** very basic implementation of credit card ([bb24f7e](https://github.com/ho-nl/m2-pwa/commit/bb24f7ec0577d018f0aff9b50de14f219e7504c5))
|
199
191
|
|
200
192
|
## [2.101.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.101.0...@graphcommerce/magento-payment-braintree@2.101.1) (2021-07-28)
|
201
193
|
|
202
194
|
### Bug Fixes
|
203
195
|
|
204
|
-
- **braintree:** allow for proper initialization of braintree client libraries
|
205
|
-
([af87d1c](https://github.com/ho-nl/m2-pwa/commit/af87d1ccde1378127b9ef76b197d3946a9c7ca92))
|
196
|
+
- **braintree:** allow for proper initialization of braintree client libraries ([af87d1c](https://github.com/ho-nl/m2-pwa/commit/af87d1ccde1378127b9ef76b197d3946a9c7ca92))
|
206
197
|
|
207
198
|
# [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.100.19...@graphcommerce/magento-payment-braintree@2.101.0) (2021-07-26)
|
208
199
|
|
209
200
|
### Features
|
210
201
|
|
211
|
-
- **playwright:** added new playwright package to enable browser testing
|
212
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
202
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
213
203
|
|
214
204
|
## [2.100.11](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.100.10...@graphcommerce/magento-payment-braintree@2.100.11) (2021-07-20)
|
215
205
|
|
216
206
|
### Bug Fixes
|
217
207
|
|
218
|
-
- ignore md files from triggering version updates
|
219
|
-
([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
208
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
@@ -1,18 +1,19 @@
|
|
1
|
+
/* eslint-disable jsx-a11y/label-has-associated-control */
|
1
2
|
import { useFormGqlMutationCart } from '@graphcommerce/magento-cart'
|
2
3
|
import { PaymentOptionsProps } from '@graphcommerce/magento-cart-payment-method'
|
3
4
|
import { useFormCompose } from '@graphcommerce/react-hook-form'
|
4
|
-
import { BraintreeError } from 'braintree-web'
|
5
|
+
// import { BraintreeError } from 'braintree-web'
|
5
6
|
import { BraintreePaymentMethodOptionsDocument } from '../../BraintreePaymentMethodOptions.gql'
|
6
7
|
import { useBraintreeHostedFields } from '../../hooks/useBraintreeHostedFields'
|
7
8
|
|
8
|
-
const errorTypes = ['CUSTOMER', 'MERCHANT', 'NETWORK', 'INTERNAL', 'UNKNOWN']
|
9
|
+
// const errorTypes = ['CUSTOMER', 'MERCHANT', 'NETWORK', 'INTERNAL', 'UNKNOWN']
|
9
10
|
|
10
|
-
function isBraintreeError(e: any | BraintreeError): e is BraintreeError {
|
11
|
-
|
12
|
-
}
|
11
|
+
// function isBraintreeError(e: any | BraintreeError): e is BraintreeError {
|
12
|
+
// return errorTypes.includes((e as BraintreeError).type)
|
13
|
+
// }
|
13
14
|
|
14
15
|
/** It sets the selected payment method on the cart. */
|
15
|
-
function PaymentMethodOptions(props: PaymentOptionsProps) {
|
16
|
+
export function PaymentMethodOptions(props: PaymentOptionsProps) {
|
16
17
|
const { code, step, Container } = props
|
17
18
|
const hosted = useBraintreeHostedFields()
|
18
19
|
|
@@ -62,5 +63,3 @@ function PaymentMethodOptions(props: PaymentOptionsProps) {
|
|
62
63
|
</Container>
|
63
64
|
)
|
64
65
|
}
|
65
|
-
|
66
|
-
export default PaymentMethodOptions
|
@@ -2,7 +2,7 @@ import {
|
|
2
2
|
PaymentMethodPlaceOrderNoop,
|
3
3
|
PaymentModule,
|
4
4
|
} from '@graphcommerce/magento-cart-payment-method'
|
5
|
-
import PaymentMethodOptions from './PaymentMethodOptions'
|
5
|
+
import { PaymentMethodOptions } from './PaymentMethodOptions'
|
6
6
|
|
7
7
|
export const braintree = {
|
8
8
|
PaymentOptions: PaymentMethodOptions,
|
@@ -7,7 +7,7 @@ import { useBraintreeLocalPayment } from '../../hooks/useBraintreeLocalPayment'
|
|
7
7
|
import { BraintreeLocalPaymentsCartDocument } from './BraintreeLocalPaymentsCart.gql'
|
8
8
|
|
9
9
|
/** It sets the selected payment method on the cart. */
|
10
|
-
function PaymentMethodOptions(props: PaymentOptionsProps) {
|
10
|
+
export function PaymentMethodOptions(props: PaymentOptionsProps) {
|
11
11
|
const localPaymentPromise = useBraintreeLocalPayment()
|
12
12
|
|
13
13
|
const { code, step, child } = props
|
@@ -49,6 +49,7 @@ function PaymentMethodOptions(props: PaymentOptionsProps) {
|
|
49
49
|
},
|
50
50
|
onPaymentStart: ({ paymentId }, next) => {
|
51
51
|
// todo what should we do with the payment id?
|
52
|
+
// eslint-disable-next-line no-console
|
52
53
|
console.log(paymentId)
|
53
54
|
next()
|
54
55
|
},
|
@@ -77,5 +78,3 @@ function PaymentMethodOptions(props: PaymentOptionsProps) {
|
|
77
78
|
</form>
|
78
79
|
)
|
79
80
|
}
|
80
|
-
|
81
|
-
export default PaymentMethodOptions
|
@@ -2,7 +2,7 @@ import {
|
|
2
2
|
PaymentMethodPlaceOrderNoop,
|
3
3
|
PaymentModule,
|
4
4
|
} from '@graphcommerce/magento-cart-payment-method'
|
5
|
-
import PaymentMethodOptions from './PaymentMethodOptions'
|
5
|
+
import { PaymentMethodOptions } from './PaymentMethodOptions'
|
6
6
|
import { expandMethods } from './expandMethods'
|
7
7
|
|
8
8
|
export const braintree_local_payment = {
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@graphcommerce/magento-payment-braintree",
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
5
|
-
"version": "3.0.
|
5
|
+
"version": "3.0.5",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -12,25 +12,25 @@
|
|
12
12
|
}
|
13
13
|
},
|
14
14
|
"devDependencies": {
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.
|
16
|
-
"@graphcommerce/magento-cart-shipping-address": "^3.0.
|
17
|
-
"@graphcommerce/magento-product": "^4.
|
18
|
-
"@graphcommerce/magento-product-configurable": "^4.0.
|
19
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
20
|
-
"@graphcommerce/typescript-config-pwa": "^4.0.
|
21
|
-
"@playwright/test": "^1.
|
22
|
-
"@types/braintree-web": "^3.75.
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.3",
|
16
|
+
"@graphcommerce/magento-cart-shipping-address": "^3.0.5",
|
17
|
+
"@graphcommerce/magento-product": "^4.1.3",
|
18
|
+
"@graphcommerce/magento-product-configurable": "^4.0.7",
|
19
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.5",
|
20
|
+
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
21
|
+
"@playwright/test": "^1.20.1",
|
22
|
+
"@types/braintree-web": "^3.75.19",
|
23
|
+
"type-fest": "2.12.1"
|
23
24
|
},
|
24
25
|
"dependencies": {
|
25
|
-
"@graphcommerce/graphql": "^3.0.
|
26
|
-
"@graphcommerce/image": "^3.
|
27
|
-
"@graphcommerce/magento-cart": "^4.
|
28
|
-
"@graphcommerce/magento-cart-payment-method": "^3.0.
|
29
|
-
"@graphcommerce/magento-store": "^4.
|
30
|
-
"@graphcommerce/next-ui": "^4.
|
31
|
-
"@graphcommerce/react-hook-form": "^3.0.
|
32
|
-
"braintree-web": "^3.85.2"
|
33
|
-
"type-fest": "^2.11.2"
|
26
|
+
"@graphcommerce/graphql": "^3.0.6",
|
27
|
+
"@graphcommerce/image": "^3.1.2",
|
28
|
+
"@graphcommerce/magento-cart": "^4.2.2",
|
29
|
+
"@graphcommerce/magento-cart-payment-method": "^3.0.6",
|
30
|
+
"@graphcommerce/magento-store": "^4.1.4",
|
31
|
+
"@graphcommerce/next-ui": "^4.5.0",
|
32
|
+
"@graphcommerce/react-hook-form": "^3.0.6",
|
33
|
+
"braintree-web": "^3.85.2"
|
34
34
|
},
|
35
35
|
"peerDependencies": {
|
36
36
|
"@lingui/macro": "^3.13.2",
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
2
|
-
import { waitForGraphQlResponse } from '@graphcommerce/graphql/
|
2
|
+
import { waitForGraphQlResponse } from '@graphcommerce/graphql/test/apolloClient.fixture'
|
3
3
|
import { PaymentMethodPlaceOrderNoopDocument } from '@graphcommerce/magento-cart-payment-method/PaymentMethodPlaceOrderNoop/PaymentMethodPlaceOrderNoop.gql'
|
4
|
-
import { fillShippingAddressForm } from '@graphcommerce/magento-cart-shipping-address/
|
5
|
-
import { addConfigurableProductToCart } from '@graphcommerce/magento-product-configurable/
|
6
|
-
import { test } from '@graphcommerce/magento-product/
|
4
|
+
import { fillShippingAddressForm } from '@graphcommerce/magento-cart-shipping-address/test/fillShippingAddressForm'
|
5
|
+
import { addConfigurableProductToCart } from '@graphcommerce/magento-product-configurable/test/addConfigurableProductToCart'
|
6
|
+
import { test } from '@graphcommerce/magento-product/test/productURL.fixture'
|
7
7
|
import { expect } from '@playwright/test'
|
8
8
|
|
9
9
|
test('place order', async ({ page, productURL }) => {
|
@@ -19,9 +19,9 @@ test('place order', async ({ page, productURL }) => {
|
|
19
19
|
await fillShippingAddressForm(page)
|
20
20
|
|
21
21
|
await page.click('button[value=flatrate-flatrate]')
|
22
|
-
await page.click('
|
22
|
+
await page.click('#next')
|
23
23
|
|
24
|
-
await page.click('button[value=
|
24
|
+
await page.click('button[value=braintree]')
|
25
25
|
|
26
26
|
await page.click('button:has-text("Credit Card")')
|
27
27
|
|
@@ -40,7 +40,7 @@ test('place order', async ({ page, productURL }) => {
|
|
40
40
|
await expirationFrame?.fill('input[name="expiration"]', '102022')
|
41
41
|
|
42
42
|
// Click button:has-text("Pay (Credit Card)")
|
43
|
-
await page.click('
|
43
|
+
await page.click('#place-order')
|
44
44
|
|
45
45
|
const result = await waitForGraphQlResponse(page, PaymentMethodPlaceOrderNoopDocument)
|
46
46
|
expect(result.errors).toBeUndefined()
|
package/{_playwright/braintree_local_payments.spec.ts → test/braintree_local_payments.playwright.ts}
RENAMED
@@ -1,9 +1,9 @@
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
2
|
-
import { waitForGraphQlResponse } from '@graphcommerce/graphql/
|
2
|
+
import { waitForGraphQlResponse } from '@graphcommerce/graphql/test/apolloClient.fixture'
|
3
3
|
import { PaymentMethodPlaceOrderNoopDocument } from '@graphcommerce/magento-cart-payment-method/PaymentMethodPlaceOrderNoop/PaymentMethodPlaceOrderNoop.gql'
|
4
|
-
import { fillShippingAddressForm } from '@graphcommerce/magento-cart-shipping-address/
|
5
|
-
import { addConfigurableProductToCart } from '@graphcommerce/magento-product-configurable/
|
6
|
-
import { test } from '@graphcommerce/magento-product/
|
4
|
+
import { fillShippingAddressForm } from '@graphcommerce/magento-cart-shipping-address/test/fillShippingAddressForm'
|
5
|
+
import { addConfigurableProductToCart } from '@graphcommerce/magento-product-configurable/test/addConfigurableProductToCart'
|
6
|
+
import { test } from '@graphcommerce/magento-product/test/productURL.fixture'
|
7
7
|
import { expect } from '@playwright/test'
|
8
8
|
|
9
9
|
test('place order', async ({ page, productURL }) => {
|
@@ -19,13 +19,13 @@ test('place order', async ({ page, productURL }) => {
|
|
19
19
|
await fillShippingAddressForm(page)
|
20
20
|
|
21
21
|
await page.click('button[value=flatrate-flatrate]')
|
22
|
-
await page.click('
|
22
|
+
await page.click('#next')
|
23
23
|
|
24
24
|
await page.click('button[value=braintree_local_payment___ideal]')
|
25
25
|
|
26
26
|
const [braintreePopup] = await Promise.all([
|
27
27
|
page.waitForEvent('popup'),
|
28
|
-
page.click('
|
28
|
+
page.click('#place-order'),
|
29
29
|
])
|
30
30
|
|
31
31
|
await braintreePopup.click('text=Proceed with Sandbox Purchase')
|