@graphcommerce/magento-payment-braintree 9.0.0-canary.78 → 9.0.0-canary.80
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 9.0.0-canary.80
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`1d6512d`](https://github.com/graphcommerce-org/graphcommerce/commit/1d6512d4118cfb46602aa1f2432c3566fdb3261d) - Rename experimental_useV2 prop to deprecated_useV1 in useFromGql and enable it by default ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
8
|
+
|
9
|
+
## 9.0.0-canary.79
|
10
|
+
|
3
11
|
## 9.0.0-canary.78
|
4
12
|
|
5
13
|
## 9.0.0-canary.77
|
@@ -159,7 +159,6 @@ export function PaymentMethodOptions(props: PaymentOptionsProps) {
|
|
159
159
|
}
|
160
160
|
>(BraintreePaymentMethodOptionsDocument, {
|
161
161
|
defaultValues: { code },
|
162
|
-
experimental_useV2: true,
|
163
162
|
onBeforeSubmit: async (variables) => {
|
164
163
|
if (!hostedFields) throw new Error('Hosted fields not available')
|
165
164
|
if (!threeDSecure) throw new Error('3D Secure not available')
|
@@ -8,7 +8,6 @@ import { useFormCompose } from '@graphcommerce/react-hook-form'
|
|
8
8
|
import type { FlowType, Intent } from 'paypal-checkout-components'
|
9
9
|
import { useEffect } from 'react'
|
10
10
|
import { BraintreePaymentMethodOptionsDocument } from '../../BraintreePaymentMethodOptions.gql'
|
11
|
-
import { StartPaymentOptions } from '../../hooks/useBraintree'
|
12
11
|
import { useBraintreeCartLock } from '../../hooks/useBraintreeCartLock'
|
13
12
|
import { useBraintreePaypal } from '../../hooks/useBraintreePaypal'
|
14
13
|
import { isBraintreeError } from '../../utils/isBraintreeError'
|
@@ -44,8 +43,6 @@ export function PaymentMethodOptions(props: PaymentOptionsProps) {
|
|
44
43
|
|
45
44
|
const address = cartData.cart.shipping_addresses?.[0]
|
46
45
|
|
47
|
-
console.log('hoi')
|
48
|
-
|
49
46
|
const nonce = await paypal.createPayment({
|
50
47
|
flow: 'checkout' as FlowType, // Required
|
51
48
|
amount: cartData.cart.prices.grand_total.value,
|
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": "9.0.0-canary.
|
5
|
+
"version": "9.0.0-canary.80",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -18,19 +18,19 @@
|
|
18
18
|
"braintree-web": "^3.103.0"
|
19
19
|
},
|
20
20
|
"peerDependencies": {
|
21
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
22
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
23
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
24
|
-
"@graphcommerce/magento-cart": "^9.0.0-canary.
|
25
|
-
"@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.
|
26
|
-
"@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.
|
27
|
-
"@graphcommerce/magento-product": "^9.0.0-canary.
|
28
|
-
"@graphcommerce/magento-product-configurable": "^9.0.0-canary.
|
29
|
-
"@graphcommerce/magento-store": "^9.0.0-canary.
|
30
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
31
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
32
|
-
"@graphcommerce/react-hook-form": "^9.0.0-canary.
|
33
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
21
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.80",
|
22
|
+
"@graphcommerce/graphql": "^9.0.0-canary.80",
|
23
|
+
"@graphcommerce/image": "^9.0.0-canary.80",
|
24
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.80",
|
25
|
+
"@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.80",
|
26
|
+
"@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.80",
|
27
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.80",
|
28
|
+
"@graphcommerce/magento-product-configurable": "^9.0.0-canary.80",
|
29
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.80",
|
30
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.80",
|
31
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.80",
|
32
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.80",
|
33
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.80",
|
34
34
|
"@lingui/core": "^4.2.1",
|
35
35
|
"@lingui/macro": "^4.2.1",
|
36
36
|
"@lingui/react": "^4.2.1",
|