You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* develop: (27 commits)
Added CURL example to README
Added missing mongodb installation steps
Renamed http_code to status_code
Replaced image with one delivered from js.co.ke
Updated banner
Added banner image to readme
Adding project banner
Finished #17 Add installations steps to README
Finished #22 Add field/params validation to /payment/request route
Finished #10 Refactor ES6 import and any ES2015 feature not supported by Argon (Node.js v4.4.4.)
Updated express and some of dependencies
Updated /payment/request paymentDetails to use underscore notation on response
Updated response JSON example in README
Finshed #19 Wrap successful responses in response object
Finished #20 Add sample request and response to README
Finished #20 Add sample request and response to README
Made /payment/request a POST request
Replaced include method with indexOf while checking for extraParams
Added payment request details to JSON response
Added missing return code: 43
...
/payment/request
route recieves 4 params, 2 required, 2 optional (system generates replacements for these)Parameters:
phoneNumber
- The phone number of your clienttotalAmount
- The total amount you are charging the clientreferenceID
- The reference ID of the order or service [optional]merchantTransactionID
- This specific order's or service's transaction ID [optional]We need to validate the required params, namely:
phoneNumber
- 10 digit numerical value that starts with +25 (plus sign optional)totalAmount
- numerical values onlyThe text was updated successfully, but these errors were encountered: