Subversion Repositories SmartDukaan

Rev

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

Rev 8618 Rev 8908
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 ''
46
  print ''
46
  sys.exit(0)
47
  sys.exit(0)
47
 
48
 
48
pp = pprint.PrettyPrinter(indent = 2)
49
pp = pprint.PrettyPrinter(indent = 2)
49
host = 'localhost'
50
host = 'localhost'
Line 216... Line 217...
216
  if len(args) != 2:
217
  if len(args) != 2:
217
    print 'markPaymentAsProcessed requires 2 args'
218
    print 'markPaymentAsProcessed requires 2 args'
218
    sys.exit(1)
219
    sys.exit(1)
219
  pp.pprint(client.markPaymentAsProcessed(eval(args[0]),eval(args[1]),))
220
  pp.pprint(client.markPaymentAsProcessed(eval(args[0]),eval(args[1]),))
220
 
221
 
-
 
222
elif cmd == 'validatePaymentAtGateway':
-
 
223
  if len(args) != 3:
-
 
224
    print 'validatePaymentAtGateway requires 3 args'
-
 
225
    sys.exit(1)
-
 
226
  pp.pprint(client.validatePaymentAtGateway(eval(args[0]),eval(args[1]),eval(args[2]),))
-
 
227
 
221
else:
228
else:
222
  print 'Unrecognized method %s' % cmd
229
  print 'Unrecognized method %s' % cmd
223
  sys.exit(1)
230
  sys.exit(1)
224
 
231
 
225
transport.close()
232
transport.close()