| 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 ' captureHdfcPayment(i64 merchantPaymentId)'
|
| - |
|
35 |
print ' string initializeHdfcPayment(i64 merchantPaymentId)'
|
| 33 |
print ''
|
36 |
print ''
|
| 34 |
sys.exit(0)
|
37 |
sys.exit(0)
|
| 35 |
|
38 |
|
| 36 |
pp = pprint.PrettyPrinter(indent = 2)
|
39 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 37 |
host = 'localhost'
|
40 |
host = 'localhost'
|
| Line 130... |
Line 133... |
| 130 |
if len(args) != 0:
|
133 |
if len(args) != 0:
|
| 131 |
print 'getSuccessfulPaymentsAmountRange requires 0 args'
|
134 |
print 'getSuccessfulPaymentsAmountRange requires 0 args'
|
| 132 |
sys.exit(1)
|
135 |
sys.exit(1)
|
| 133 |
pp.pprint(client.getSuccessfulPaymentsAmountRange())
|
136 |
pp.pprint(client.getSuccessfulPaymentsAmountRange())
|
| 134 |
|
137 |
|
| - |
|
138 |
elif cmd == 'updateAndCaptureEbsPayment':
|
| - |
|
139 |
if len(args) != 1:
|
| - |
|
140 |
print 'updateAndCaptureEbsPayment requires 1 args'
|
| - |
|
141 |
sys.exit(1)
|
| - |
|
142 |
pp.pprint(client.updateAndCaptureEbsPayment(eval(args[0]),))
|
| - |
|
143 |
|
| - |
|
144 |
elif cmd == 'captureHdfcPayment':
|
| - |
|
145 |
if len(args) != 1:
|
| - |
|
146 |
print 'captureHdfcPayment requires 1 args'
|
| - |
|
147 |
sys.exit(1)
|
| - |
|
148 |
pp.pprint(client.captureHdfcPayment(eval(args[0]),))
|
| - |
|
149 |
|
| - |
|
150 |
elif cmd == 'initializeHdfcPayment':
|
| - |
|
151 |
if len(args) != 1:
|
| - |
|
152 |
print 'initializeHdfcPayment requires 1 args'
|
| - |
|
153 |
sys.exit(1)
|
| - |
|
154 |
pp.pprint(client.initializeHdfcPayment(eval(args[0]),))
|
| - |
|
155 |
|
| 135 |
transport.close()
|
156 |
transport.close()
|