diff options
author | priscilla <priscilla.huang@efrei.net> | 2022-11-15 08:26:01 -0500 |
---|---|---|
committer | priscilla <priscilla.huang@efrei.net> | 2022-11-15 08:26:01 -0500 |
commit | bc4e556a059be49fc83ed6d6efcebff1387663f2 (patch) | |
tree | 236c1c302278ae02287e2fc867fef2159fec581d /core/api-merchant.rst | |
parent | fc65da690439643e799d46f2cfe295be4b5fef4a (diff) | |
download | docs-bc4e556a059be49fc83ed6d6efcebff1387663f2.tar.gz docs-bc4e556a059be49fc83ed6d6efcebff1387663f2.tar.bz2 docs-bc4e556a059be49fc83ed6d6efcebff1387663f2.zip |
Update
Diffstat (limited to 'core/api-merchant.rst')
-rw-r--r-- | core/api-merchant.rst | 72 |
1 files changed, 0 insertions, 72 deletions
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 |