Subversion Repositories SmartDukaan

Rev

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

Rev 8908 Rev 8914
Line 40... Line 40...
40
  print '  bool capturePayment(i64 merchantTxnId, bool isDigital)'
40
  print '  bool capturePayment(i64 merchantTxnId, bool isDigital)'
41
  print '  bool refundPayment(i64 merchantTxnId, double amount, bool isDigital)'
41
  print '  bool refundPayment(i64 merchantTxnId, double amount, bool isDigital)'
42
  print '  bool partiallyCapturePayment(i64 merchantTxnId, double amount, string xferBy, string xferTxnId, i64 xferDate)'
42
  print '  bool partiallyCapturePayment(i64 merchantTxnId, double amount, string xferBy, string xferTxnId, i64 xferDate)'
43
  print '   getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category)'
43
  print '   getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category)'
44
  print '  void markPaymentAsProcessed(i64 paymentId, ExtraPaymentProcessingType category)'
44
  print '  void markPaymentAsProcessed(i64 paymentId, ExtraPaymentProcessingType category)'
45
  print '  bool validatePaymentAtGateway(i64 merchantTxnId, double amount, bool isDigital)'
45
  print '  PaymentStatus getPaymentStatusAtGateway(i64 merchantTxnId, double amount, bool isDigital)'
46
  print ''
46
  print ''
47
  sys.exit(0)
47
  sys.exit(0)
48
 
48
 
49
pp = pprint.PrettyPrinter(indent = 2)
49
pp = pprint.PrettyPrinter(indent = 2)
50
host = 'localhost'
50
host = 'localhost'
Line 217... Line 217...
217
  if len(args) != 2:
217
  if len(args) != 2:
218
    print 'markPaymentAsProcessed requires 2 args'
218
    print 'markPaymentAsProcessed requires 2 args'
219
    sys.exit(1)
219
    sys.exit(1)
220
  pp.pprint(client.markPaymentAsProcessed(eval(args[0]),eval(args[1]),))
220
  pp.pprint(client.markPaymentAsProcessed(eval(args[0]),eval(args[1]),))
221
 
221
 
222
elif cmd == 'validatePaymentAtGateway':
222
elif cmd == 'getPaymentStatusAtGateway':
223
  if len(args) != 3:
223
  if len(args) != 3:
224
    print 'validatePaymentAtGateway requires 3 args'
224
    print 'getPaymentStatusAtGateway requires 3 args'
225
    sys.exit(1)
225
    sys.exit(1)
226
  pp.pprint(client.validatePaymentAtGateway(eval(args[0]),eval(args[1]),eval(args[2]),))
226
  pp.pprint(client.getPaymentStatusAtGateway(eval(args[0]),eval(args[1]),eval(args[2]),))
227
 
227
 
228
else:
228
else:
229
  print 'Unrecognized method %s' % cmd
229
  print 'Unrecognized method %s' % cmd
230
  sys.exit(1)
230
  sys.exit(1)
231
 
231