File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ def refund_transaction(refTransId):
12
12
merchantAuth .transactionKey = constants .transactionKey
13
13
14
14
creditCard = apicontractsv1 .creditCardType ()
15
- creditCard .cardNumber = "4111111111111111 "
16
- creditCard .expirationDate = "2020-12 "
15
+ creditCard .cardNumber = "0015 "
16
+ creditCard .expirationDate = "XXXX "
17
17
18
18
payment = apicontractsv1 .paymentType ()
19
19
payment .creditCard = creditCard
@@ -40,6 +40,10 @@ def refund_transaction(refTransId):
40
40
print "Transaction ID : %s" % response .transactionResponse .transId
41
41
else :
42
42
print "response code: %s" % response .messages .resultCode
43
+ print "Message code: %s" % response .messages .message [0 ].code
44
+ print "Message text: %s" % response .messages .message [0 ].text
45
+ print "Transaction Error Code: %s" % response .transactionResponse .errors .error [0 ].errorCode
46
+ print "Transaction Error Text: %s" % response .transactionResponse .errors .error [0 ].errorText
43
47
44
48
return response
45
49
You can’t perform that action at this time.
0 commit comments