Skip to content

Commit

Permalink
Upgrade Adyen dropin v6
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Dec 24, 2024
1 parent e743885 commit 6bd7225
Show file tree
Hide file tree
Showing 6 changed files with 882 additions and 901 deletions.
17 changes: 17 additions & 0 deletions .ncurc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
reject: [
'pnpm',
'iframe-resizer'
],
filterResults: (name, { upgradedVersionSemver }) => {
if (
name === '@types/node' && parseInt(upgradedVersionSemver?.major) >= 22 ||
name === 'eslint' && parseInt(upgradedVersionSemver?.major) >= 9 ||
name === 'rapid-form' && parseInt(upgradedVersionSemver?.major) >= 3
) {
return false
}

return true
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"components:build:dev": "pnpm --filter react-components build:dev",
"components:build": "pnpm --filter react-components build",
"make:version": "lerna version --no-private",
"make:version:force": "lerna version --no-private --force-publish"
"make:version:force": "lerna version --no-private --force-publish",
"dep:major": "pnpm dlx npm-check-updates --packageFile '**/package.json' -u -i",
"dep:minor": "pnpm dep:major -t minor -i"
},
"devDependencies": {
"@commercelayer/eslint-config-ts-react": "^1.4.5",
Expand Down
22 changes: 11 additions & 11 deletions packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,16 @@
},
"homepage": "https://github.com/commercelayer/commercelayer-react-components#readme",
"dependencies": {
"@adyen/adyen-web": "^5.71.1",
"@adyen/adyen-web": "^6.6.0",
"@commercelayer/organization-config": "^1.4.12",
"@commercelayer/sdk": "^6.26.0",
"@stripe/react-stripe-js": "^3.0.0",
"@stripe/stripe-js": "^5.2.0",
"@tanstack/react-table": "^8.17.3",
"@commercelayer/sdk": "^6.27.0",
"@stripe/react-stripe-js": "^3.1.1",
"@stripe/stripe-js": "^5.3.0",
"@tanstack/react-table": "^8.20.6",
"@types/iframe-resizer": "^3.5.13",
"braintree-web": "^3.112.1",
"braintree-web": "^3.113.0",
"frames-react": "^1.2.2",
"iframe-resizer": "^4.4.5",
"iframe-resizer": "^4.3.6",
"jwt-decode": "^4.0.0",
"lodash": "^4.17.21",
"rapid-form": "2.1.0"
Expand All @@ -207,15 +207,15 @@
"@types/react-window": "^1.8.8",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^2.1.8",
"eslint": "~9.16.0",
"eslint": "^8.57.0",
"jsdom": "^25.0.1",
"minimize-js": "^1.4.0",
"msw": "^2.6.8",
"msw": "^2.7.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-test-renderer": "^18.3.1",
"tsc-alias": "^1.8.8",
"tslib": "^2.6.3",
"tsc-alias": "^1.8.10",
"tslib": "^2.8.1",
"typescript": "^5.7.2",
"vite": "^6.0.3",
"vite-tsconfig-paths": "^5.1.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export function AdyenGateway(props: Props): JSX.Element | null {
useContext(PaymentMethodContext)
const paymentResource: PaymentResource = 'adyen_payments'
const locale = order?.language_code as StripeElementLocale
if (!readonly && payment?.id !== currentPaymentMethodId && order != null && !canPlaceOrder(order)) return null
console.log('AdyenGateway order', order, order?.status)
console.log('AdyenGateway order can place? --- ', order && canPlaceOrder(order))
if (!readonly && payment?.id !== currentPaymentMethodId) return null
// @ts-expect-error no type
const clientKey = paymentSource?.public_key
const environment = accessToken && jwt(accessToken).test ? 'test' : 'live'
Expand Down
Loading

0 comments on commit 6bd7225

Please sign in to comment.