Scan element
The scan element shows a short code and a QR code. The customer scans it or types the code in their app and pays there. See Scan to pay for the code.
Card result, as after 3-D Secure:
Events
| State | What the customer sees | Your page |
|---|---|---|
| Loaded | A placeholder until Pay | ready |
| Code shown | The short code and QR code | confirmScanPayment() returns scan_code |
| Paid, declined | Your page shows the result | waitForTransaction() |
The QR image in this demo is a blank stand-in; the short code is real text.
Reference: ScanElement.