Subversion Repositories SmartDukaan

Rev

Rev 3616 | Rev 4008 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3616 Rev 3956
Line 31... Line 31...
31
  print '   getSuccessfulPaymentsAmountRange()'
31
  print '   getSuccessfulPaymentsAmountRange()'
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 ''
37
  print ''
37
  sys.exit(0)
38
  sys.exit(0)
38
 
39
 
39
pp = pprint.PrettyPrinter(indent = 2)
40
pp = pprint.PrettyPrinter(indent = 2)
40
host = 'localhost'
41
host = 'localhost'
Line 153... Line 154...
153
  if len(args) != 1:
154
  if len(args) != 1:
154
    print 'capturePayment requires 1 args'
155
    print 'capturePayment requires 1 args'
155
    sys.exit(1)
156
    sys.exit(1)
156
  pp.pprint(client.capturePayment(eval(args[0]),))
157
  pp.pprint(client.capturePayment(eval(args[0]),))
157
 
158
 
-
 
159
elif cmd == 'partiallyCapturePayment':
-
 
160
  if len(args) != 5:
-
 
161
    print 'partiallyCapturePayment requires 5 args'
-
 
162
    sys.exit(1)
-
 
163
  pp.pprint(client.partiallyCapturePayment(eval(args[0]),eval(args[1]),args[2],args[3],eval(args[4]),))
-
 
164
 
158
else:
165
else:
159
  print 'Unrecognized method %s' % cmd
166
  print 'Unrecognized method %s' % cmd
160
  sys.exit(1)
167
  sys.exit(1)
161
 
168
 
162
transport.close()
169
transport.close()