Subversion Repositories SmartDukaan

Rev

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

Rev 2685 Rev 2708
Line 29... Line 29...
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)'
33
  print '  Payment updateAndCaptureEbsPayment( paymentParams)'
-
 
34
  print '   captureEbsPayment(i64 merchantPaymentId)'
34
  print '   captureHdfcPayment(i64 merchantPaymentId)'
35
  print '   captureHdfcPayment(i64 merchantPaymentId)'
35
  print '  string initializeHdfcPayment(i64 merchantPaymentId)'
36
  print '  string initializeHdfcPayment(i64 merchantPaymentId)'
36
  print '  i64 createRefund(i64 orderId, i64 merchantTxnId, double amount)'
37
  print '  i64 createRefund(i64 orderId, i64 merchantTxnId, double amount)'
37
  print ''
38
  print ''
38
  sys.exit(0)
39
  sys.exit(0)
Line 140... Line 141...
140
  if len(args) != 1:
141
  if len(args) != 1:
141
    print 'updateAndCaptureEbsPayment requires 1 args'
142
    print 'updateAndCaptureEbsPayment requires 1 args'
142
    sys.exit(1)
143
    sys.exit(1)
143
  pp.pprint(client.updateAndCaptureEbsPayment(eval(args[0]),))
144
  pp.pprint(client.updateAndCaptureEbsPayment(eval(args[0]),))
144
 
145
 
-
 
146
elif cmd == 'captureEbsPayment':
-
 
147
  if len(args) != 1:
-
 
148
    print 'captureEbsPayment requires 1 args'
-
 
149
    sys.exit(1)
-
 
150
  pp.pprint(client.captureEbsPayment(eval(args[0]),))
-
 
151
 
145
elif cmd == 'captureHdfcPayment':
152
elif cmd == 'captureHdfcPayment':
146
  if len(args) != 1:
153
  if len(args) != 1:
147
    print 'captureHdfcPayment requires 1 args'
154
    print 'captureHdfcPayment requires 1 args'
148
    sys.exit(1)
155
    sys.exit(1)
149
  pp.pprint(client.captureHdfcPayment(eval(args[0]),))
156
  pp.pprint(client.captureHdfcPayment(eval(args[0]),))