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.
sequenceDiagram
autonumber
participant Patron
participant POS
participant Centrapay
Note over Patron: Present Barcode
Patron->>POS: Scan Barcode
POS->>Centrapay: Create Payment Request with Barcode
par
loop
POS->>Centrapay: Poll for Payment Confirmation
end
Patron->>Centrapay: Pay Payment Request
end
Note over POS: ✅ Display Successful Payment
Note over Patron: ✅ Display Successful Payment
The patron presents a Barcode for the POS to scan.
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.
sequenceDiagram
autonumber
participant Patron
participant POS
participant Centrapay
Note over Patron: Present Barcode
Patron->>POS: Scan Barcode
POS->>Centrapay: Create Payment Request with Barcode
loop
POS->>Centrapay: Poll for Payment Confirmation
note over Centrapay: Automatically Confirm the Payment
end
Note over POS: ✅ Display Successful Payment
Note over Patron: ✅ Display Successful Payment
The patron presents a Barcode for the POS to scan.
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.