Skip to content

Commit 12add69

Browse files
updated docs to include redirect for MoMo payments
1 parent 5c205bb commit 12add69

File tree

2 files changed

+249
-214
lines changed

2 files changed

+249
-214
lines changed

README.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,21 @@ res = rave.GhMobile.charge(payload)
636636
This call returns a dictionary. A sample response is:
637637

638638
```py
639-
{'error': False, 'validationRequired': True, 'txRef': 'MC-1530910216380', 'flwRef': 'N/A'}
639+
{
640+
"status": "success",
641+
"message": "Momo initiated",
642+
"data": {
643+
"code": "02",
644+
"status": "pending",
645+
"ts": 1591798138846,
646+
"link": "https://ravemodal-dev.herokuapp.com/captcha/verify/123:49fa60c0db04f0017d717a0a662194cd"
647+
}
648+
}
640649
```
641650

651+
652+
In order to complete the charge, kindly redirect users to the link returned as `data.link` from the charge response.
653+
642654
This call raises a ```TransactionChargeError``` if there was a problem processing your transaction. The ```TransactionChargeError``` contains some information about your transaction. You can handle this as such:
643655

644656
```py
@@ -895,9 +907,21 @@ res = rave.UGMobile.charge(payload)
895907
This call returns a dictionary. A sample response is:
896908

897909
```py
898-
{'error': False, 'status': 'success', 'validationRequired': True, 'txRef': 'MC-1544013787279', 'flwRef': 'flwm3s4m0c1544013788481'}
910+
{
911+
"status": "success",
912+
"message": "Momo initiated",
913+
"data": {
914+
"code": "02",
915+
"status": "pending",
916+
"ts": 1591798138846,
917+
"link": "https://ravemodal-dev.herokuapp.com/captcha/verify/123:49fa60c0db04f0017d717a0a662194cd"
918+
}
919+
}
899920
```
900921

922+
923+
In order to complete the charge, kindly redirect users to the link returned as `data.link` from the charge response.
924+
901925
This call raises a ```TransactionChargeError``` if there was a problem processing your transaction. The ```TransactionChargeError``` contains some information about your transaction. You can handle this as such:
902926

903927
```py
@@ -1025,9 +1049,20 @@ res = rave.ZBMobile.charge(payload)
10251049
This call returns a dictionary. A sample response is:
10261050

10271051
```py
1028-
{'error': False, 'status': 'success', 'validationRequired': True, 'txRef': 'MC-1544013787279', 'flwRef': 'flwm3s4m0c1544013788481'}
1052+
{
1053+
"status": "success",
1054+
"message": "Momo initiated",
1055+
"data": {
1056+
"code": "02",
1057+
"status": "pending",
1058+
"ts": 1591798138846,
1059+
"link": "https://ravemodal-dev.herokuapp.com/captcha/verify/123:49fa60c0db04f0017d717a0a662194cd"
1060+
}
1061+
}
10291062
```
10301063

1064+
In order to complete the charge, kindly redirect users to the link returned as `data.link` from the charge response.
1065+
10311066
This call raises a ```TransactionChargeError``` if there was a problem processing your transaction. The ```TransactionChargeError``` contains some information about your transaction. You can handle this as such:
10321067

10331068
```py

0 commit comments

Comments
 (0)