Basic Glase payment
Make a test purchase:
- Create a bill and publish it to the app
- Pay using Glase app
- Check the payment status
The example uses public credentials that you can use for testing.
Sequence of payment
@startuml
skinparam monochrome true
participant Merchant
participant SEQR
participant "SEQR App" as SEQRApp
Merchant->SEQR: sendInvoice
SEQR-->Merchant: (unique reference)
Merchant->SEQR: getPaymentStatus
SEQR-->Merchant: ISSUED
SEQRApp->SEQR: ask for invoice at point of sale or using reference
Note right of SEQR: retry until you get SUCCESS
SEQRApp->SEQR: payment (with uniqe reference)
Merchant->SEQR: getPaymentStatus
SEQR-->Merchant: PAID
Note right of Merchant: Payment cleared!
SEQR->SEQRApp: Done (show receipt)
Merchant-->SEQRApp: Happy!
@enduml
Create a bill and publish it to the app
You will need PIL and qrpython library (pip install qrcode PIL suds)
Pay using Glase app
Download and install Glase app, refer to Get Glase app.
Check for payment status
Note! The point of sale must check the status each second, to verify that payment is completed. Otherwise the Glase server does not receive any notification that transaction is finalized and the purchase will then be reversed!
Try more functions
So this is the core of Glase payments. The same flow, more or less, can be used in all the payment scenarios you see in the next section.