Skip to content

Commit

Permalink
Reverted secure form changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashish committed Aug 4, 2023
1 parent c34f8f8 commit f47bdda
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion assets/javascripts/omise-embedded-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ function showOmiseEmbeddedCardForm({
}
element.style.height = iframeElementHeight + 'px'

const localeMatching = {
en_US: 'en',
ja_JP: 'ja',
th_TH: 'th'
}

OmiseCard.configure({
publicKey: publicKey,
element,
customCardForm: true,
locale: locale,
locale: localeMatching[locale] ?? 'en',
customCardFormTheme: theme,
customCardFormHideRememberCard: hideRememberCard ?? false,
customCardFormBrandIcons: brandIcons ?? null,
Expand Down

0 comments on commit f47bdda

Please sign in to comment.