📔Configure the Payments File with QR Code

This guide provides instructions to configure the payments file with QR Code.

Prerequisites

  • The user must have Program Administrator role.

  • The user must have access to Program module in Open G2P systems.

Procedure

Programs screen is displayed.

  1. Click the Configuration in the menu bar and then select Payments File Configs.

Payments File Configs screen is displayed.

  1. Click the Create button.

Payments File Configs /New screen is displayed.

The fields and their descriptions are given below:

FieldDescription

Name

Enter the name for the payments file configuration

Type

Select the format for the payments file from the drop-down. The valid values are:

  • PDF

  • CSV

Template

Click the template tab to add the template of the payments file

QR Codes

Click the QR codes to configure the QR codes in the payments file

Configure QR codes in payments file

  1. Click the QR Codes tab and click the Add a line link.

Create Qrcode Config screen is displayed.

The fields and their descriptions are given below:

FieldDescription

Name

Enter the name for the QR code

Type

Select the appropriate option from the drop-down. The available options are:

  • QR code

  • Code 128 Barcode

Data Type

Select the appropriate option from the drop-down. The available options are:

  • String

  • JSON

  • JWT

Body

Fill the body based on the selected datatype

Qrcode Version

Enter the Qrcode version, if required. It is an optional field.

Qrcode Error Correct

Select the appropriate option from the drop-down. The available options are:

  • ERROR_CORRECT_M

  • ERROR_CORRECT_L

  • ERROR_CORRECT_H

  • ERROR_CORRECT_Q

It is an optional field.

Qrcode Box Size

Enter the size of the Qrcode box. Default size is 10. It is an optional field.

Qrcode Border

Enter the number of border for the Qrcode. Default border count is 4. It is an optional field.

Based on the requirement you can configure QR code with different data types.

  • Configure QR code with the data type - string

  • Configure QR code with the data type - JSON

  • Configure QR code with the data type - JWT

Configure QR code with data type - string

  1. Select the String from the data type drop-down.

If you want to configure QR code with minimum values, then select the data type as string (i.e., a normal string to display inside the QR code). For example, the Qr codes may contain any one of the values like beneficiary ID, national ID, URL and so on.

  1. Click the Save & Close button to save Qrcode configuration.

  2. Click the Discard button to exit from the screen.

  3. Click the Save & New button to save and to create new Qrcode configuration.

The created Qrcode Config is displayed in the QR Codes list.

Render QR codes

After you configured the QR code, you must render QR codes in the template.

  • Click the Template tab.

It displays the html code. Template contains the html code which defines the appearance of the files in PDF format.

In the html code, search for the image source and update the QR code name that must appear in pdf format. For example

<img style="height:1.75in;width:1.75in;" t-att-src="object.qrcode_ids.get_by_name('<QR code name>').content_htmlsafe"/>.

Sample file with QR code

Last updated

Logo

Copyright © 2024 OpenG2P. This work is licensed under Creative Commons Attribution International LicenseCC-BY-4.0 unless otherwise noted.