| Line 32... |
Line 32... |
| 32 |
print ' string initializeHdfcPayment(i64 merchantPaymentId)'
|
32 |
print ' string initializeHdfcPayment(i64 merchantPaymentId)'
|
| 33 |
print ' string initializeHdfcEmiPayment(i64 merchantPaymentId)'
|
33 |
print ' string initializeHdfcEmiPayment(i64 merchantPaymentId)'
|
| 34 |
print ' i64 createRefund(i64 orderId, i64 merchantTxnId, double amount)'
|
34 |
print ' i64 createRefund(i64 orderId, i64 merchantTxnId, double amount)'
|
| 35 |
print ' bool capturePayment(i64 merchantTxnId)'
|
35 |
print ' bool capturePayment(i64 merchantTxnId)'
|
| 36 |
print ' bool partiallyCapturePayment(i64 merchantTxnId, double amount, string xferBy, string xferTxnId, i64 xferDate)'
|
36 |
print ' bool partiallyCapturePayment(i64 merchantTxnId, double amount, string xferBy, string xferTxnId, i64 xferDate)'
|
| - |
|
37 |
print ' getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category)'
|
| - |
|
38 |
print ' void markPaymentAsProcessed(i64 paymentId, ExtraPaymentProcessingType category)'
|
| 37 |
print ''
|
39 |
print ''
|
| 38 |
sys.exit(0)
|
40 |
sys.exit(0)
|
| 39 |
|
41 |
|
| 40 |
pp = pprint.PrettyPrinter(indent = 2)
|
42 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 41 |
host = 'localhost'
|
43 |
host = 'localhost'
|
| Line 160... |
Line 162... |
| 160 |
if len(args) != 5:
|
162 |
if len(args) != 5:
|
| 161 |
print 'partiallyCapturePayment requires 5 args'
|
163 |
print 'partiallyCapturePayment requires 5 args'
|
| 162 |
sys.exit(1)
|
164 |
sys.exit(1)
|
| 163 |
pp.pprint(client.partiallyCapturePayment(eval(args[0]),eval(args[1]),args[2],args[3],eval(args[4]),))
|
165 |
pp.pprint(client.partiallyCapturePayment(eval(args[0]),eval(args[1]),args[2],args[3],eval(args[4]),))
|
| 164 |
|
166 |
|
| - |
|
167 |
elif cmd == 'getPaymentsRequiringExtraProcessing':
|
| - |
|
168 |
if len(args) != 1:
|
| - |
|
169 |
print 'getPaymentsRequiringExtraProcessing requires 1 args'
|
| - |
|
170 |
sys.exit(1)
|
| - |
|
171 |
pp.pprint(client.getPaymentsRequiringExtraProcessing(eval(args[0]),))
|
| - |
|
172 |
|
| - |
|
173 |
elif cmd == 'markPaymentAsProcessed':
|
| - |
|
174 |
if len(args) != 2:
|
| - |
|
175 |
print 'markPaymentAsProcessed requires 2 args'
|
| - |
|
176 |
sys.exit(1)
|
| - |
|
177 |
pp.pprint(client.markPaymentAsProcessed(eval(args[0]),eval(args[1]),))
|
| - |
|
178 |
|
| 165 |
else:
|
179 |
else:
|
| 166 |
print 'Unrecognized method %s' % cmd
|
180 |
print 'Unrecognized method %s' % cmd
|
| 167 |
sys.exit(1)
|
181 |
sys.exit(1)
|
| 168 |
|
182 |
|
| 169 |
transport.close()
|
183 |
transport.close()
|