Skip to content

Commit

Permalink
Fix payment localization
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Jul 10, 2024
1 parent bba89ef commit 92bc8f1
Showing 1 changed file with 1 addition and 2 deletions.
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.'
)
}
console.log('order?.country_code', order?.country_code)
const options = {
locale: order?.country_code != null ? `${order?.country_code?.toLowerCase()}_${order?.country_code}` : locale,
locale: order?.language_code ?? locale,
environment,
clientKey,
amount: {
Expand Down

0 comments on commit 92bc8f1

Please sign in to comment.