taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 4d3784833d51f29d055c8c810a54f02a48858d01
parent 4b58d81adf3d4067d0d5a1e7856ab20ac54a0cf7
Author: priscilla <priscilla.huang@efrei.net>
Date:   Thu, 10 Nov 2022 11:55:48 -0500

Static QR code

Diffstat:
Mcore/api-merchant.rst | 47++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 46 insertions(+), 1 deletion(-)

diff --git 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