diff --git a/rave_python/rave_card.py b/rave_python/rave_card.py index ede7459..dd822c5 100644 --- a/rave_python/rave_card.py +++ b/rave_python/rave_card.py @@ -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 @@ -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: @@ -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 diff --git a/rave_python/rave_payment.py b/rave_python/rave_payment.py index bd8fd94..360b894 100644 --- a/rave_python/rave_payment.py +++ b/rave_python/rave_payment.py @@ -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":