@graphcommerce/magento-payment-braintree 4.14.0-canary.2 → 4.14.0-canary.4
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 +14 -0
- package/README.md +13 -0
- package/package.json +11 -11
- package/plugins/AddBraintreeMethods.tsx +3 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 4.14.0-canary.4
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`b2d73c726`](https://github.com/graphcommerce-org/graphcommerce/commit/b2d73c726fa123435fa6c54b4e0fd0db2df7c4ab) - Move to <Prev/> instead of <Component/> to call the plugin component ([@paales](https://github.com/paales))
|
8
|
+
|
9
|
+
- [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`be10e8cd1`](https://github.com/graphcommerce-org/graphcommerce/commit/be10e8cd1dce172a914ee9e5f65fdca4d0929fc8) - Migrated payment methods to use the new `onSuccess` method from `PaymentMethodContextProvider` instead of redirecting manually, makes sure the onSuccess method can be used by plugins. ([@paales](https://github.com/paales))
|
10
|
+
|
11
|
+
## 4.14.0-canary.3
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- [#1729](https://github.com/graphcommerce-org/graphcommerce/pull/1729) [`4f85e4878`](https://github.com/graphcommerce-org/graphcommerce/commit/4f85e4878e4ad0dd528d60ad35826da0677059a9) - Add the ability to specificy plugins on the package name (e.g. `@graphcommerce/magento-cart-payment-method`) ([@paales](https://github.com/paales))
|
16
|
+
|
3
17
|
## 4.14.0-canary.2
|
4
18
|
|
5
19
|
### Minor Changes
|
package/README.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Magento Payment Braintree
|
2
|
+
|
3
|
+
Integrates GraphCommerce with the Magento Braintree module
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
1. Find current version of your `@graphcommerce/magento-cart-payment-method` in
|
8
|
+
your package.json.
|
9
|
+
2. `yarn add @graphcommerce/magento-payment-braintree@1.2.3` (replace 1.2.3 with
|
10
|
+
the version of the step above)
|
11
|
+
|
12
|
+
This package uses GraphCommerce plugin systems, so there is no code modification
|
13
|
+
required.
|
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": "4.14.0-canary.
|
5
|
+
"version": "4.14.0-canary.4",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -13,9 +13,9 @@
|
|
13
13
|
},
|
14
14
|
"devDependencies": {
|
15
15
|
"@graphcommerce/eslint-config-pwa": "^4.1.11",
|
16
|
-
"@graphcommerce/magento-cart-shipping-address": "4.14.0-canary.
|
17
|
-
"@graphcommerce/magento-product": "4.14.0-canary.
|
18
|
-
"@graphcommerce/magento-product-configurable": "4.14.0-canary.
|
16
|
+
"@graphcommerce/magento-cart-shipping-address": "4.14.0-canary.4",
|
17
|
+
"@graphcommerce/magento-product": "4.14.0-canary.4",
|
18
|
+
"@graphcommerce/magento-product-configurable": "4.14.0-canary.4",
|
19
19
|
"@graphcommerce/prettier-config-pwa": "^4.0.7",
|
20
20
|
"@graphcommerce/typescript-config-pwa": "^4.0.5",
|
21
21
|
"@playwright/test": "^1.21.1",
|
@@ -23,13 +23,13 @@
|
|
23
23
|
"type-fest": "^2.12.2"
|
24
24
|
},
|
25
25
|
"dependencies": {
|
26
|
-
"@graphcommerce/graphql": "4.31.0-canary.
|
27
|
-
"@graphcommerce/image": "4.31.0-canary.
|
28
|
-
"@graphcommerce/magento-cart": "4.14.0-canary.
|
29
|
-
"@graphcommerce/magento-cart-payment-method": "4.14.0-canary.
|
30
|
-
"@graphcommerce/magento-store": "4.14.0-canary.
|
31
|
-
"@graphcommerce/next-ui": "4.31.0-canary.
|
32
|
-
"@graphcommerce/react-hook-form": "4.31.0-canary.
|
26
|
+
"@graphcommerce/graphql": "4.31.0-canary.3",
|
27
|
+
"@graphcommerce/image": "4.31.0-canary.3",
|
28
|
+
"@graphcommerce/magento-cart": "4.14.0-canary.4",
|
29
|
+
"@graphcommerce/magento-cart-payment-method": "4.14.0-canary.4",
|
30
|
+
"@graphcommerce/magento-store": "4.14.0-canary.4",
|
31
|
+
"@graphcommerce/next-ui": "4.31.0-canary.3",
|
32
|
+
"@graphcommerce/react-hook-form": "4.31.0-canary.3",
|
33
33
|
"braintree-web": "^3.86.0"
|
34
34
|
},
|
35
35
|
"peerDependencies": {
|
@@ -4,12 +4,11 @@ import { braintree } from '../methods/braintree'
|
|
4
4
|
import { braintree_local_payment } from '../methods/braintree_local_payments'
|
5
5
|
|
6
6
|
export const component = 'PaymentMethodContextProvider'
|
7
|
-
export const exported =
|
8
|
-
'@graphcommerce/magento-cart-payment-method/PaymentMethodContext/PaymentMethodContext'
|
7
|
+
export const exported = '@graphcommerce/magento-cart-payment-method'
|
9
8
|
|
10
9
|
function AddBrainTreeMethods(props: PluginProps<PaymentMethodContextProviderProps>) {
|
11
|
-
const { modules,
|
12
|
-
return <
|
10
|
+
const { modules, Prev } = props
|
11
|
+
return <Prev {...props} modules={{ ...modules, braintree, braintree_local_payment }} />
|
13
12
|
}
|
14
13
|
|
15
14
|
export const Plugin = AddBrainTreeMethods
|