@graphcommerce/mollie-magento-payment 3.3.3 → 3.4.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1544](https://github.com/graphcommerce-org/graphcommerce/pull/1544) [`5f927ebdc`](https://github.com/graphcommerce-org/graphcommerce/commit/5f927ebdc6f0331833e02b96e4f169bfe475ac6b) Thanks [@mikekeehnen](https://github.com/mikekeehnen)! - Fixed hydration errors on account, cart and wishlist
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`5f927ebdc`](https://github.com/graphcommerce-org/graphcommerce/commit/5f927ebdc6f0331833e02b96e4f169bfe475ac6b), [`c87a28e7d`](https://github.com/graphcommerce-org/graphcommerce/commit/c87a28e7dad87bffd0bd125ad5fdca65aaa389cc), [`c756f42e5`](https://github.com/graphcommerce-org/graphcommerce/commit/c756f42e503761a497e4a5a7a02d02141df231c3)]:
|
|
12
|
+
- @graphcommerce/graphql@3.4.0
|
|
13
|
+
- @graphcommerce/magento-cart@4.5.0
|
|
14
|
+
- @graphcommerce/magento-cart-payment-method@3.4.0
|
|
15
|
+
- @graphcommerce/react-hook-form@3.3.0
|
|
16
|
+
- @graphcommerce/next-ui@4.12.0
|
|
17
|
+
- @graphcommerce/magento-store@4.2.15
|
|
18
|
+
|
|
19
|
+
## 3.3.5
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`fe4baa42d`](https://github.com/graphcommerce-org/graphcommerce/commit/fe4baa42db0081ed960d62aef688bd36a7ac974f)]:
|
|
24
|
+
- @graphcommerce/magento-cart@4.4.8
|
|
25
|
+
- @graphcommerce/magento-cart-payment-method@3.3.5
|
|
26
|
+
- @graphcommerce/next-ui@4.11.2
|
|
27
|
+
- @graphcommerce/magento-store@4.2.14
|
|
28
|
+
|
|
29
|
+
## 3.3.4
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [[`11bca2d2f`](https://github.com/graphcommerce-org/graphcommerce/commit/11bca2d2f7dbb7c5e2827c04eb0db43d4099f2fd), [`d5e012462`](https://github.com/graphcommerce-org/graphcommerce/commit/d5e012462dda18a61aa20eca8dc57e26cc4c7931)]:
|
|
34
|
+
- @graphcommerce/next-ui@4.11.1
|
|
35
|
+
- @graphcommerce/magento-cart-payment-method@3.3.4
|
|
36
|
+
- @graphcommerce/magento-cart@4.4.7
|
|
37
|
+
- @graphcommerce/magento-store@4.2.13
|
|
38
|
+
|
|
3
39
|
## 3.3.3
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
|
@@ -12,7 +12,7 @@ import { MolliePlaceOrderDocument } from './MolliePlaceOrder.gql'
|
|
|
12
12
|
export function MolliePlaceOrder(props: PaymentPlaceOrderProps) {
|
|
13
13
|
const { step, code } = props
|
|
14
14
|
const { push } = useRouter()
|
|
15
|
-
const
|
|
15
|
+
const { currentCartId } = useCurrentCartId()
|
|
16
16
|
const [, lock] = useCartLockWithToken()
|
|
17
17
|
const { selectedMethod } = usePaymentMethodContext()
|
|
18
18
|
|
|
@@ -23,18 +23,18 @@ export function MolliePlaceOrder(props: PaymentPlaceOrderProps) {
|
|
|
23
23
|
useEffect(() => {
|
|
24
24
|
const current = new URL(window.location.href.replace(window.location.hash, ''))
|
|
25
25
|
// current.searchParams.append('locked', '1')
|
|
26
|
-
current.searchParams.set('cart_id',
|
|
26
|
+
current.searchParams.set('cart_id', currentCartId ?? '')
|
|
27
27
|
current.searchParams.set('mollie_payment_token', 'PAYMENT_TOKEN')
|
|
28
28
|
current.searchParams.set('method', selectedMethod?.code ?? '')
|
|
29
29
|
current.searchParams.set('locked', '1')
|
|
30
30
|
const replaced = current.toString().replace('PAYMENT_TOKEN', '{{payment_token}}')
|
|
31
31
|
setValue('returnUrl', replaced)
|
|
32
|
-
}, [
|
|
32
|
+
}, [currentCartId, selectedMethod?.code, setValue])
|
|
33
33
|
|
|
34
34
|
const submit = handleSubmit(() => {})
|
|
35
35
|
|
|
36
36
|
useEffect(() => {
|
|
37
|
-
if (!data?.placeOrder?.order || error || !
|
|
37
|
+
if (!data?.placeOrder?.order || error || !currentCartId) return
|
|
38
38
|
const redirectUrl = data?.placeOrder?.order.mollie_redirect_url
|
|
39
39
|
const mollie_payment_token = data?.placeOrder?.order.mollie_payment_token
|
|
40
40
|
|
|
@@ -48,7 +48,7 @@ export function MolliePlaceOrder(props: PaymentPlaceOrderProps) {
|
|
|
48
48
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
49
49
|
push(redirectUrl)
|
|
50
50
|
}
|
|
51
|
-
}, [
|
|
51
|
+
}, [currentCartId, data?.placeOrder?.order, error, lock, push, selectedMethod?.code])
|
|
52
52
|
|
|
53
53
|
useFormCompose({ form, step, submit, key: `PaymentMethodPlaceOrder_${code}` })
|
|
54
54
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/mollie-magento-payment",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.4.0",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -13,23 +13,23 @@
|
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@graphcommerce/eslint-config-pwa": "^4.1.8",
|
|
16
|
-
"@graphcommerce/magento-cart-shipping-address": "3.2.
|
|
17
|
-
"@graphcommerce/magento-product": "4.4.
|
|
18
|
-
"@graphcommerce/magento-product-configurable": "4.1.
|
|
16
|
+
"@graphcommerce/magento-cart-shipping-address": "3.2.5",
|
|
17
|
+
"@graphcommerce/magento-product": "4.4.13",
|
|
18
|
+
"@graphcommerce/magento-product-configurable": "4.1.20",
|
|
19
19
|
"@graphcommerce/prettier-config-pwa": "^4.0.6",
|
|
20
20
|
"@graphcommerce/typescript-config-pwa": "^4.0.3",
|
|
21
21
|
"@playwright/test": "^1.21.1",
|
|
22
22
|
"type-fest": "^2.12.2"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@graphcommerce/graphql": "3.
|
|
25
|
+
"@graphcommerce/graphql": "3.4.0",
|
|
26
26
|
"@graphcommerce/graphql-mesh": "4.1.4",
|
|
27
27
|
"@graphcommerce/image": "3.1.7",
|
|
28
|
-
"@graphcommerce/magento-cart": "4.
|
|
29
|
-
"@graphcommerce/magento-cart-payment-method": "3.
|
|
30
|
-
"@graphcommerce/magento-store": "4.2.
|
|
31
|
-
"@graphcommerce/next-ui": "4.
|
|
32
|
-
"@graphcommerce/react-hook-form": "3.
|
|
28
|
+
"@graphcommerce/magento-cart": "4.5.0",
|
|
29
|
+
"@graphcommerce/magento-cart-payment-method": "3.4.0",
|
|
30
|
+
"@graphcommerce/magento-store": "4.2.15",
|
|
31
|
+
"@graphcommerce/next-ui": "4.12.0",
|
|
32
|
+
"@graphcommerce/react-hook-form": "3.3.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@lingui/react": "^3.13.2",
|