Make a display request for a QR code
-
If the QR code needs to contain more than just a URL, convert the content to a URL-encoded string. You’ll need to specify the URL-encoded string in the display request, in the
OutputContent.OutputBarcode.BarcodeValue. For example, if the QR code should have this content:The resulting URL-encoded string will look like this:If the QR code needs to contain only a URL, for examplehttps://www.adyen.com/pos-payments, there is no need to URL-encode that. You’ll specify the URL in the display request as a plain text string. -
Make a Terminal API display request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Device andMessageCategoryset to Display.QR code:
Header and footer (optional):
The header and footer are both text array items with the same structure. If you specify one text array item, that will be interpreted as the header. If you specify a second text array item, that will be interpreted as the footer.
-
The standard
-
In the display response, check the OutputResult. This array indicates whether the elements were successfully shown. The first item in the array refers to the first item in the
DisplayOutputarray , and so on. Display response
