-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to use the latest theme, reworded and fixed formatting
- Loading branch information
1 parent
c95dc50
commit d31d48c
Showing
23 changed files
with
329 additions
and
133 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,17 +4,53 @@ | |
<p align="center">Template project to use for creating client merchant docs</p> | ||
</p> | ||
|
||
## Requirements | ||
|
||
- GIT | ||
- Hugo (v0.100.2 extended) | ||
|
||
## Usage | ||
|
||
### Download/Clone | ||
|
||
The documentation uses a submodule for its theme. Therefore when cloning the repository ensure you do so recursively: | ||
The client docs template uses a GIT submodule for its theme. Therefore, when cloning the repository ensure you do so recursively: | ||
|
||
```sh | ||
git clone --recurse-submodules [email protected]:rehive/client-docs-template.git | ||
``` | ||
|
||
When pulling new changes from `master` make sure you also run the following afterwards to get the latest submodule updates. | ||
|
||
```sh | ||
git clone --recurse-submodules [email protected]:rehive/docs-portal.git | ||
git submodule update | ||
``` | ||
|
||
If a submodule has been updated at its origin, then you will need to merge these updates into the repository using: | ||
|
||
```sh | ||
git submodule update --remote --merge | ||
``` | ||
|
||
And then commit/push the new submodule. | ||
|
||
### Development | ||
|
||
To run the hugo server: | ||
|
||
```sh | ||
hugo serve | ||
``` | ||
|
||
To build the static files: | ||
|
||
```sh | ||
hugo | ||
``` | ||
|
||
Please take a look at the [Hugo Documentation](https://gohugo.io/documentation/) for additional usage. | ||
|
||
### Configuration | ||
|
||
Update the configuration in the `config.yaml` with apropriate values. | ||
|
||
Update the `references` in the `content/checkout/_index.md` file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ weight: 5 | |
Closed-loop payments involve the user paying directly from their wallet balance to your merchant account. There are a few options available to the ender user but each work in a very similar way. The options you should present to the user if they chose to pay with their wallet balance are as follows, any can be omitted depending on what you would like to support: | ||
|
||
### Scan to Pay and Login to Pay | ||
|
||
To be added. | ||
|
||
### OTP payment | ||
|
@@ -19,14 +20,16 @@ The required information from the user is: | |
2. A mobile number that validated on their wallet | ||
|
||
Once the user has provided this information you will need to PATCH the Invoice as follows: | ||
``` | ||
|
||
```sh | ||
curl -X PATCH "{{<param invoicesApi>}}/api/requests/<invoice-id>/" -H "accept: application/json" | ||
-H "Content-Type: application/json" | ||
-d "{ \"payer_email\": \"[email protected]\", \"payer_mobile_number\": \"+27777777777\"}" | ||
``` | ||
|
||
If successful the user will receive an SMS with the OTP code. You will need to provide a way for the user to enter this code so you can make a POST request to: `{{<param invoicesAPI>}}/api/manager/businesses/<business_id>/invoice/<invoice-id>/otp-challenge/` as follows: | ||
``` | ||
|
||
```sh | ||
curl -X POST "{{param invoicesApi}}/requests/<invoice-id>/otp_challenge/" | ||
-H "accept: application/json" -H "Content-Type: application/json" --data '{"otp": "401703"}' | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.