Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions rave_python/rave_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ def _handleVerifyResponse(self, response, txRef):
chargemessage = responseJson["data"]["chargemessage"]
chargecode = responseJson["data"]["chargecode"]
currency = responseJson["data"]["currency"]
paymenttype = responseJson["data"]["paymenttype"]
custname = responseJson["data"]["custname"]
custemail = responseJson["data"]["custemail"]
custphone = responseJson["data"]["custphone"]
meta = responseJson["data"]["meta"]

# Check if the call returned something other than a 200
Expand All @@ -123,6 +127,10 @@ def _handleVerifyResponse(self, response, txRef):
"chargemessage": chargemessage,
"chargecode": chargecode,
"currency": currency,
"paymenttype": paymenttype,
"custname": custname,
"custemail": custemail,
"custphone": custphone,
"meta": meta}

else:
Expand All @@ -138,6 +146,10 @@ def _handleVerifyResponse(self, response, txRef):
"chargemessage": chargemessage,
"chargecode": chargecode,
"currency": currency,
"paymenttype": paymenttype,
"custname": custname,
"custemail": custemail,
"custphone": custphone,
"meta": meta}

# Charge card function
Expand Down
4 changes: 2 additions & 2 deletions rave_python/rave_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ def _handleVerifyResponse(self, response, txRef):
responseJson = res["json"]
# retrieve necessary properties from response
verify_response["status"] = responseJson['status']
verify_response['flwRef'], verify_response["txRef"], verify_response["vbvcode"], verify_response["vbvmessage"], verify_response["acctmessage"], verify_response["currency"], verify_response["chargecode"], verify_response["amount"], verify_response[
"chargedamount"], verify_response["chargemessage"], verify_response["meta"] = Payment.retrieve(responseJson['data'], "flwref", "txref", "vbvcode", "vbvmessage", "acctmessage", "currency", "chargecode", "amount", "chargedamount", "chargemessage", "meta")
verify_response['flwRef'], verify_response["txRef"], verify_response["vbvcode"], verify_response["vbvmessage"], verify_response["acctmessage"], verify_response["currency"], verify_response["paymenttype"], verify_response["chargecode"], verify_response["amount"], verify_response[
"chargedamount"], verify_response["chargemessage"], verify_response["custname"], verify_response["custemail"], verify_response["custphone"], verify_response["meta"] = Payment.retrieve(responseJson['data'], "flwref", "txref", "vbvcode", "vbvmessage", "acctmessage", "currency", "paymenttype", "chargecode", "amount", "chargedamount", "chargemessage", "custname", "custemail", "custphone", "meta")

# Check if the chargecode is 00
if verify_response['chargecode'] == "00":
Expand Down
Loading