| Line 28... |
Line 28... |
| 28 |
print ' PaymentGateway getPaymentGateway(i64 id)'
|
28 |
print ' PaymentGateway getPaymentGateway(i64 id)'
|
| 29 |
print ' Payment getPayment(i64 id)'
|
29 |
print ' Payment getPayment(i64 id)'
|
| 30 |
print ' getPaymentForTxnId(i64 txnId)'
|
30 |
print ' getPaymentForTxnId(i64 txnId)'
|
| 31 |
print ' bool updatePaymentDetails(i64 id, string gatewayPaymentId, string sessionId, string gatewayTxnStatus, string description, string gatewayTxnId, string authCode, string referenceCode, string errorCode, PaymentStatus status, string gatewayTxnDate, attributes)'
|
31 |
print ' bool updatePaymentDetails(i64 id, string gatewayPaymentId, string sessionId, string gatewayTxnStatus, string description, string gatewayTxnId, string authCode, string referenceCode, string errorCode, PaymentStatus status, string gatewayTxnDate, attributes)'
|
| 32 |
print ' getSuccessfulPaymentsAmountRange()'
|
32 |
print ' getSuccessfulPaymentsAmountRange()'
|
| 33 |
print ' Payment updateAndCaptureEbsPayment( paymentParams)'
|
- |
|
| 34 |
print ' captureEbsPayment(i64 merchantPaymentId)'
|
33 |
print ' captureEbsPayment(i64 merchantPaymentId)'
|
| 35 |
print ' captureHdfcPayment(i64 merchantPaymentId)'
|
34 |
print ' captureHdfcPayment(i64 merchantPaymentId)'
|
| 36 |
print ' string initializeHdfcPayment(i64 merchantPaymentId)'
|
35 |
print ' string initializeHdfcPayment(i64 merchantPaymentId)'
|
| 37 |
print ' i64 createRefund(i64 orderId, i64 merchantTxnId, double amount)'
|
36 |
print ' i64 createRefund(i64 orderId, i64 merchantTxnId, double amount)'
|
| - |
|
37 |
print ' bool capturePayment(i64 merchantTxnId)'
|
| 38 |
print ''
|
38 |
print ''
|
| 39 |
sys.exit(0)
|
39 |
sys.exit(0)
|
| 40 |
|
40 |
|
| 41 |
pp = pprint.PrettyPrinter(indent = 2)
|
41 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 42 |
host = 'localhost'
|
42 |
host = 'localhost'
|
| Line 135... |
Line 135... |
| 135 |
if len(args) != 0:
|
135 |
if len(args) != 0:
|
| 136 |
print 'getSuccessfulPaymentsAmountRange requires 0 args'
|
136 |
print 'getSuccessfulPaymentsAmountRange requires 0 args'
|
| 137 |
sys.exit(1)
|
137 |
sys.exit(1)
|
| 138 |
pp.pprint(client.getSuccessfulPaymentsAmountRange())
|
138 |
pp.pprint(client.getSuccessfulPaymentsAmountRange())
|
| 139 |
|
139 |
|
| 140 |
elif cmd == 'updateAndCaptureEbsPayment':
|
- |
|
| 141 |
if len(args) != 1:
|
- |
|
| 142 |
print 'updateAndCaptureEbsPayment requires 1 args'
|
- |
|
| 143 |
sys.exit(1)
|
- |
|
| 144 |
pp.pprint(client.updateAndCaptureEbsPayment(eval(args[0]),))
|
- |
|
| 145 |
|
- |
|
| 146 |
elif cmd == 'captureEbsPayment':
|
140 |
elif cmd == 'captureEbsPayment':
|
| 147 |
if len(args) != 1:
|
141 |
if len(args) != 1:
|
| 148 |
print 'captureEbsPayment requires 1 args'
|
142 |
print 'captureEbsPayment requires 1 args'
|
| 149 |
sys.exit(1)
|
143 |
sys.exit(1)
|
| 150 |
pp.pprint(client.captureEbsPayment(eval(args[0]),))
|
144 |
pp.pprint(client.captureEbsPayment(eval(args[0]),))
|
| Line 165... |
Line 159... |
| 165 |
if len(args) != 3:
|
159 |
if len(args) != 3:
|
| 166 |
print 'createRefund requires 3 args'
|
160 |
print 'createRefund requires 3 args'
|
| 167 |
sys.exit(1)
|
161 |
sys.exit(1)
|
| 168 |
pp.pprint(client.createRefund(eval(args[0]),eval(args[1]),eval(args[2]),))
|
162 |
pp.pprint(client.createRefund(eval(args[0]),eval(args[1]),eval(args[2]),))
|
| 169 |
|
163 |
|
| - |
|
164 |
elif cmd == 'capturePayment':
|
| - |
|
165 |
if len(args) != 1:
|
| - |
|
166 |
print 'capturePayment requires 1 args'
|
| - |
|
167 |
sys.exit(1)
|
| - |
|
168 |
pp.pprint(client.capturePayment(eval(args[0]),))
|
| - |
|
169 |
|
| 170 |
transport.close()
|
170 |
transport.close()
|