Connecting with patrons using our Barcode Flow requires the patron to present a Barcode and the merchant integration to scan it in order to create a Payment Request.
Barcode Flow
The sequence diagram below indicates the expected flow of behavior between the patron, the Point of Sale (POS) and Centrapay.
Loading Diagram...
- The patron presents a Barcode for the POS to scan.
- The POS creates a Centrapay Payment Request with the Barcode.
- The POS polls the Payment Request for Payment Confirmation.
- While the POS continues to poll, the patron pays the Payment Request via their Centrapay integrated app.
When the Payment Request status is paid
, the POS stops polling and displays confirmation of the successful payment.
Quick Pay Flow
Quick Pay is used to immediately confirm the payment without requiring patron approval.
The patron’s barcode must be linked to an asset type that allows Quick Pay in order to use this flow. See Asset Types for the list of asset types that support Quick Pay.
Loading Diagram...
- The patron presents a Barcode for the POS to scan.
- The POS creates a Centrapay Payment Request with the Barcode.
- The POS polls the Payment Request for payment confirmation.
- When Centrapay receives the first attempt to poll the Payment Request, it will automatically trigger payment. After payment is successful and the Payment Request status is
paid
; the POS stops polling and displays confirmation of the successful payment.
Checking Barcode Details
The POS can optionally decode a scanned barcode in order to get further details about a barcode before it creates a Payment Request. For example, the POS can use the barcode provider
to apply any provider-specific discounts before creating the Payment Request.
Loading Diagram...
- The patron presents a barcode for the POS to scan.
- The POS decodes the scanned barcode and applies any provider-related discounts.
- The POS creates a Payment Request with the barcode and continues with either the Barcode Flow or Quick Pay Flow.