Skip to content

Commit

Permalink
updated network for Zambia Mobile Money
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusyaovi committed Oct 14, 2021
1 parent 3745bf2 commit d19efd0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion rave_python/rave_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ def __init__(self, publicKey=None, secretKey=None, production=False, usingEnv=Tr

# config variables (protected)
self._baseUrlMap = ["https://ravesandboxapi.flutterwave.com/", "https://api.ravepay.co/"]
self._trackingMap = "https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent"
self._endpointMap = {
"bills": {
"create":"v2/services/confluence",
Expand Down
1 change: 1 addition & 0 deletions rave_python/rave_bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def __init__(self, publicKey, secretKey, production, usingEnv):
}
super(Bills, self).__init__(publicKey, secretKey, production, usingEnv)


def _preliminaryResponseChecks(self, response, TypeOfErrorToRaise, name):
#check if we can get json
try:
Expand Down
2 changes: 1 addition & 1 deletion rave_python/rave_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __str__(self):
return self.type +"ing recepient failed with error: " + self.err["errMsg"]

class RefundError(RaveError):
""" Raised when refund fails """
""" Raised when refund fails """IN
def __init__(self, message):
msg = "Your refund call failed with message: "+str(message)
super(RefundError, self).__init__(msg)
Expand Down
2 changes: 1 addition & 1 deletion rave_python/rave_zbmobile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def charge(self, accountDetails, hasFailed=False):
endpoint = self._baseUrl + self._endpointMap["account"]["charge"]

# It is faster to add boilerplate than to check if each one is present
accountDetails.update({"payment_type": "mobilemoneyzambia", "country":"NG", "is_mobile_money_ug":"1", "currency":"ZMW", "network": "MTN"})
accountDetails.update({"payment_type": "mobilemoneyzambia", "country":"NG", "is_mobile_money_ug":"1", "currency":"ZMW"})

# If transaction reference is not set
if not ("txRef" in accountDetails):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="rave_python",
version="1.2.13",
version="1.2.14",
author="Flutterwave",
author_email="developers@flutterwavego.com",
description="Official Rave Python Wrapper By Flutterwave",
Expand Down

0 comments on commit d19efd0

Please sign in to comment.