@graphcommerce/mollie-magento-payment 8.1.0-canary.7 → 8.1.0-canary.8

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,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.1.0-canary.8
4
+
3
5
  ## 8.1.0-canary.7
4
6
 
5
7
  ## 8.1.0-canary.6
@@ -34,12 +34,15 @@ export function MolliePlaceOrder(props: PaymentPlaceOrderProps) {
34
34
  // When redirecting to the payment gateway
35
35
  if (mollie_redirect_url && mollie_payment_token) {
36
36
  await lock({ mollie_payment_token, method: code, order_number })
37
- await new Promise((resolve) => {
38
- setTimeout(resolve, 1000)
39
- })
37
+
40
38
  await push(mollie_redirect_url)
41
39
  } else {
42
- throw Error('Incomplete response')
40
+ console.error(`incomplete mollie response, cannot redirect`, data.placeOrder)
41
+
42
+ form.setError('root', {
43
+ message:
44
+ 'An error occurred while processing your payment. Please contact the store owner',
45
+ })
43
46
  }
44
47
  },
45
48
  })
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": "8.1.0-canary.7",
5
+ "version": "8.1.0-canary.8",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,21 +12,21 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^8.1.0-canary.7",
16
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.7",
17
- "@graphcommerce/graphql": "^8.1.0-canary.7",
18
- "@graphcommerce/graphql-mesh": "^8.1.0-canary.7",
19
- "@graphcommerce/image": "^8.1.0-canary.7",
20
- "@graphcommerce/magento-cart": "^8.1.0-canary.7",
21
- "@graphcommerce/magento-cart-payment-method": "^8.1.0-canary.7",
22
- "@graphcommerce/magento-cart-shipping-address": "^8.1.0-canary.7",
23
- "@graphcommerce/magento-product": "^8.1.0-canary.7",
24
- "@graphcommerce/magento-product-configurable": "^8.1.0-canary.7",
25
- "@graphcommerce/magento-store": "^8.1.0-canary.7",
26
- "@graphcommerce/next-ui": "^8.1.0-canary.7",
27
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.7",
28
- "@graphcommerce/react-hook-form": "^8.1.0-canary.7",
29
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.7",
15
+ "@graphcommerce/ecommerce-ui": "^8.1.0-canary.8",
16
+ "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.8",
17
+ "@graphcommerce/graphql": "^8.1.0-canary.8",
18
+ "@graphcommerce/graphql-mesh": "^8.1.0-canary.8",
19
+ "@graphcommerce/image": "^8.1.0-canary.8",
20
+ "@graphcommerce/magento-cart": "^8.1.0-canary.8",
21
+ "@graphcommerce/magento-cart-payment-method": "^8.1.0-canary.8",
22
+ "@graphcommerce/magento-cart-shipping-address": "^8.1.0-canary.8",
23
+ "@graphcommerce/magento-product": "^8.1.0-canary.8",
24
+ "@graphcommerce/magento-product-configurable": "^8.1.0-canary.8",
25
+ "@graphcommerce/magento-store": "^8.1.0-canary.8",
26
+ "@graphcommerce/next-ui": "^8.1.0-canary.8",
27
+ "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.8",
28
+ "@graphcommerce/react-hook-form": "^8.1.0-canary.8",
29
+ "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.8",
30
30
  "@lingui/core": "^4.2.1",
31
31
  "@lingui/macro": "^4.2.1",
32
32
  "@lingui/react": "^4.2.1",