Scan QR Code
Zastrpay is generating standard QR Codes which can be read by any device implementing the QR Code standard.
An example of a Zastrpay QR Code can be found below:
ZASTRPAY:V1/T:TI/ID:3B6FDD92-E5E8-432E-AE47-1FFCF3104AE6/DIR:W
The format is based on the following rules:
- Key–value pairs are separated by
/
- Each key and value is separated by
:
- The code always starts with
ZASTRPAY
- this is also the first key-value pair. The value is the version number (e.g.V1
) and indicates the format version for possible future extensions T
indicates the type of data/QR code. OnlyTI
meaning "Transaction Intent" is available for direct integration for the time being
The key-value pairs available for Zastrpay QR Code V1
and type TI
are listed below:
Key | Value | Description | Example |
---|---|---|---|
ID | UUID/GUID with upper-case letters and hyphens | The UUID/GUID id of the transaction intent | 3B6FDD92-E5E8-432E-AE47-1FFCF3104AE6 |
DIR | D for deposit (customer hands over cash) or W for withdrawal (customer receives cash) | The direction of the transaction intent | D |
Zastrpay may add additional key-values to the QR Code, so the parsing of the string should be performed in a generic way accommodating for new key-value pairs, and different order. Only ZASTRPAY
and T
key-values are guaranteed to be at the beginning of the string.
To generate sample Zastrpay QR Codes based on raw text the following page can be used: https://merchant.test.zastrpay.com/generate-code
To create sample QR Codes based on customer interaction/standard payment flows the following page can be used: https://merchant.test.zastrpay.com/redirect-sessions