From bc4e556a059be49fc83ed6d6efcebff1387663f2 Mon Sep 17 00:00:00 2001 From: priscilla Date: Tue, 15 Nov 2022 08:26:01 -0500 Subject: Update --- core/api-merchant.rst | 72 --------------------------------------------------- 1 file changed, 72 deletions(-) (limited to 'core/api-merchant.rst') diff --git a/core/api-merchant.rst b/core/api-merchant.rst index 05ea9a55..f41047db 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -2967,78 +2967,6 @@ Checking tip status } -------- -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 static QR code ----------------------- - -.. http:post:: [/instances/$INSTANCE]/public/staticsQRcode - - Create 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. - - - **Response:** - - :http:statuscode:`204 No content`: - The QR code has been successfully created. - - :http:statuscode:`404 Not found`: - The merchant is unknown. So, we cannot create static QR code. - - :http:statuscode:`409 Conflict`: - A QR code already exists for this store. There will have a lot of QR code for one store. - - -Create dynamic QR code ------------------------ - -.. http:post:: [/instances/$INSTANCE]/public/dynamicsQRcode - - Create dynamic QR code. - If the merchant repeat, it will create a real conflict. Dynamic QR code is unique - for every merchant. - - - **Response:** - - :http:statuscode:`204 No content`: - The QR code has been successfully created. - - :http:statuscode:`404 Not found`: - The merchant is unknown. So, we cannot create dynamic QR code. - - :http:statuscode:`409 Conflict`: - A QR code already exists for this store. So, the creation of the QR code is impossible. - One store have just one dynamic QR code. - - - -Scanning the 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. - -------- Template -- cgit v1.2.3