Skip to content

Commit

Permalink
Merge pull request #545 from commercelayer/fix/adyen-customer-payments
Browse files Browse the repository at this point in the history
Fix customer payments provided by Adyen
  • Loading branch information
acasazza authored Jul 10, 2024
2 parents 252c477 + 92bc8f1 commit 0ef665f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": false,
"npmClient": "pnpm",
"version": "4.14.2",
"version": "4.14.3-beta.1",
"command": {
"version": {
"preid": "beta"
}
}
}
}
2 changes: 1 addition & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commercelayer/react-components",
"version": "4.14.2",
"version": "4.14.3-beta.1",
"description": "The Official Commerce Layer React Components",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,8 @@ export function AdyenPayment({
'Payment methods are not available. Please, check your Adyen configuration.'
)
}

const options = {
locale,
locale: order?.language_code ?? locale,
environment,
clientKey,
amount: {
Expand All @@ -369,13 +368,15 @@ export function AdyenPayment({
paymentMethodsResponse,
showPayButton: false,
paymentMethodsConfiguration: {
showStoredPaymentMethods: true,
// @ts-expect-error no type
showStoredPaymentMethods: paymentSource?.payment_methods?.storedPaymentMethods != null ?? false,
paypal: {
showPayButton: true,
style: styles?.paypal
},
card: {
enableStoreDetails: true,
// @ts-expect-error no type
enableStoreDetails: paymentSource?.payment_methods?.storedPaymentMethods != null ?? false,
styles: styles?.card,
holderNameRequired: false
}
Expand Down

0 comments on commit 0ef665f

Please sign in to comment.