Code Sample
A sample of merchant-presented code is given with examples of a code value, a payload structure and a procedure to generate a QR code.
Below is a sample of a code value:
copy
HTTPS://QR.SAMPLEDOMAIN.COM/MPM/3/R1BMRDA5NVBMVlMwMDIwMUNEU0QwMzMwMTE0U0FNUExFUExBVEZPUk0wMjExU0FNUExFTUVSSURDSVJEMDM5MDExMlNBTVBMRUlTU1VFUjAyMDIxMjAzMTNNSU5JUFJPR1JBTUlE
Payload structure
The payload structure can be parsed in the table below:
Table 2.3 A sample payload
Data object ID | Length | Value | ||
GPLD | 095 |
| ||
| PLVS | 002 | 01 | |
CDSD | 033 |
| ||
| 01 | 14 | SAMPLEPLATFORM | |
02 | 11 | SAMPLEMERID | ||
CIRD | 039 |
| ||
| 01 | 12 | SAMPLEISSUER | |
02 | 02 | 12 | ||
03 | 13 | MINIPROGRAMID |
Procedure
- Copy the following string of a general payload:
copy
GPLD095PLVS00201CDSD0330114SAMPLEPLATFORM0211SAMPLEMERIDCIRD0390112SAMPLEISSUER0202120313MINIPROGRAMID
- Paste the string into a Base64 encoder, and you can see the following Base64 encoded value:
copy
R1BMRDA5NVBMVlMwMDIwMUNEU0QwMzMwMTE0U0FNUExFUExBVEZPUk0wMjExU0FNUExFTUVSSURDSVJEMDM5MDExMlNBTVBMRUlTU1VFUjAyMDIxMjAzMTNNSU5JUFJPR1JBTUlE
- Use the following string by URL-encoding in a HTTP request:
copy
R1BMRDA5NVBMVlMwMDIwMUNEU0QwMzMwMTE0U0FNUExFUExBVEZPUk0wMjExU0FNUExFTUVSSURDSVJEMDM5MDExMlNBTVBMRUlTU1VFUjAyMDIxMjAzMTNNSU5JUFJPR1JBTUlE
You can now see the following figure for the code value in the form of a QR Code:
Figure 2.5 A sample QR code