Customisations
How to change the Loyalty card layout in Account section
By default the Loyalty card layout presented at Account section is UiLoyaltyLayout.COMPACT_CARD, if you need to change it to UiLoyaltyLayout.BARCODE_CARD, you need to:
- In your
Applicationclass create a method calledinitSettingsand add the following code to it:loyaltyComponentSettings = {LoyaltyComponentSettings(layout = UiLoyaltyLayout.BARCODE_CARD)} - Include a call to
initSettingsmethod ononCreateafter Koin load modules call.
How to change the barcode format
By default, the Barcode format used is BarcodeFormat.CODE_128, if you need to change it to any format supported by com.google.zxing library, you need to:
- In your
Applicationclass create a method calledinitSettingsand add the following code to it:loyaltyComponentSettings = {LoyaltyComponentSettings(barcodeFormat = BarcodeFormat.CODE_128)} - Change the line
barcodeFormat = BarcodeFormat.CODE_128to the required format. - Include a call to
initSettingsmethod ononCreateafter Koin load modules call.