QR Code Scanning Guide


Some invoices have a QR code that lets the user get the payment data by scanning it from the camera screen. Scanning and processing happen automatically. When a supported QR code is detected with valid payment data, the white camera frame turns green with a proper message that the QR code is detected. If the QR code doesn’t have a supported payment format, the white camera frame turns yellow with a proper message that the QR code is not supported.

Supported QR codes


Enable QR code scanning

The QR code scanning feature is disabled by default. In case you what to use it, enable it in the GiniBankConfiguration:

let giniBankConfiguration = GiniBankConfiguration.shared ... ... ... giniBankConfiguration.qrCodeScanningEnabled = true

For activating the QR-code-only mode without the ability to take images, you need to enable the flag in the GiniBankConfiguration, but also the QR scanning ability:

let giniBankConfiguration = GiniBankConfiguration.shared ... ... ... giniBankConfiguration.qrCodeScanningEnabled = true giniBankConfiguration.onlyQRCodeScanningEnabled = true

Handle and process the Payment Data

Once the QR code is detected, processing happens automatically, and the payment data is returned. In order to handle the Payment Data from the QR code, GiniQRCodeDocument is received in the delegate method GiniCaptureDelegate.didCapture(document:), where it should be sent to the API as though it was an image or a PDF file.


Customization

All customization options are available in the Camera Screen section.