diff options
author | priscilla <priscilla.huang@efrei.net> | 2022-11-10 11:55:48 -0500 |
---|---|---|
committer | priscilla <priscilla.huang@efrei.net> | 2022-11-10 11:55:48 -0500 |
commit | 4d3784833d51f29d055c8c810a54f02a48858d01 (patch) | |
tree | 4ecbecd6121a9626ae5259a48d3af36ab576ba6b /core | |
parent | 4b58d81adf3d4067d0d5a1e7856ab20ac54a0cf7 (diff) | |
download | docs-4d3784833d51f29d055c8c810a54f02a48858d01.tar.gz docs-4d3784833d51f29d055c8c810a54f02a48858d01.tar.bz2 docs-4d3784833d51f29d055c8c810a54f02a48858d01.zip |
Static QR code
Diffstat (limited to 'core')
-rw-r--r-- | core/api-merchant.rst | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/core/api-merchant.rst b/core/api-merchant.rst index d197c07e..f225e0c8 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -2953,7 +2953,7 @@ Checking tip status .. ts:def:: Tip - interface Tip { + interface Tip { // ID of the tip in the backend database. row_id: number; @@ -2966,6 +2966,51 @@ Checking tip status } +------------------ +Static QR code +------------------ + +This section describe how the static QR code will be define. +The QR code will be used for the merchant who does not have electronics devices. +The customers will be able to scan the QR code and will redirect to the payment page. + + +Create the static QR code +------------------ + +.. http:post:: [/instances/$INSTANCE]/public/staticQRcode + Create a static QR code. + If the merchant repeat, it will create another static QR code. + This is generally without danger but merchant may want to eventually delete the unused + static QR code to avoid clutter + + + **Request:** + + + **Response:** + + + + +Scaning the static QR code +------------------ + +.. http:get:: [/instances/$INSTANCE]/public/QRcode/$QRcode_ID + Scan the QR code to be redirected to an internet page. + In this internet page, customers need to enter a price and send the money. + + **Response:** + + :http:statuscode:'200 OK': + The QR code directs us successfully to the payment website. + + :http:statuscode:'404 Not found': + The QR code is unknown to the backend. + + + + ------------------ The Contract Terms |