diff --git a/.changeset/shaggy-poets-eat.md b/.changeset/shaggy-poets-eat.md new file mode 100644 index 000000000..7f408215b --- /dev/null +++ b/.changeset/shaggy-poets-eat.md @@ -0,0 +1,5 @@ +--- +'@adyen/adyen-web': patch +--- + +Payconic - Adjusted QR code message and removed unused button label. diff --git a/packages/lib/src/components/BcmcMobile/BcmcMobile.ts b/packages/lib/src/components/BcmcMobile/BcmcMobile.ts index c240756d4..178ed233d 100644 --- a/packages/lib/src/components/BcmcMobile/BcmcMobile.ts +++ b/packages/lib/src/components/BcmcMobile/BcmcMobile.ts @@ -7,12 +7,10 @@ class BCMCMobileElement extends QRLoaderContainer { public static txVariants = [TxVariants.bcmc_mobile, TxVariants.bcmc_mobile_QR]; formatProps(props) { - const isMobile = window.matchMedia('(max-width: 768px)').matches && /Android|iPhone|iPod/.test(navigator.userAgent); - return { delay: STATUS_INTERVAL, countdownTime: COUNTDOWN_MINUTES, - buttonLabel: isMobile ? 'openApp' : 'generateQRCode', + timeToPay: 'payme.timeToPay', ...super.formatProps(props) }; }