Skip to content

Commit

Permalink
payconic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeiroguilherme committed Oct 24, 2024
1 parent 6c1dbf9 commit 865467d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-poets-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@adyen/adyen-web': patch
---

Payconic - Adjusted QR code message and removed unused button label.
4 changes: 1 addition & 3 deletions packages/lib/src/components/BcmcMobile/BcmcMobile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
}
Expand Down

0 comments on commit 865467d

Please sign in to comment.