Subversion Repositories SmartDukaan

Rev

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

Rev 6486 Rev 7049
Line 27... Line 27...
27
  print '   getPaymentsByCapturedDate(i64 fromTime, i64 toTime, i64 gatewayId)'
27
  print '   getPaymentsByCapturedDate(i64 fromTime, i64 toTime, i64 gatewayId)'
28
  print '  PaymentGateway getPaymentGateway(i64 id)'
28
  print '  PaymentGateway getPaymentGateway(i64 id)'
29
  print '   getActivePaymentGateways()'
29
  print '   getActivePaymentGateways()'
30
  print '  Payment getPayment(i64 id)'
30
  print '  Payment getPayment(i64 id)'
31
  print '   getPaymentForTxnId(i64 txnId)'
31
  print '   getPaymentForTxnId(i64 txnId)'
-
 
32
  print '   getPaymentForRechargeTxnId(i64 txnId)'
32
  print '  Payment getSuccessfulPaymentForTxnId(i64 txnId)'
33
  print '  Payment getSuccessfulPaymentForTxnId(i64 txnId)'
33
  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)'
34
  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)'
34
  print '   getSuccessfulPaymentsAmountRange()'
35
  print '   getSuccessfulPaymentsAmountRange()'
35
  print '  string initializeHdfcPayment(i64 merchantPaymentId)'
36
  print '  string initializeHdfcPayment(i64 merchantPaymentId)'
36
  print '  string doHdfcPaymentForDigitalOrder(i64 merchantPaymentId, i64 rechargeOrderId, string phone)'
37
  print '  string doHdfcPaymentForDigitalOrder(i64 merchantPaymentId, i64 rechargeOrderId, string phone)'
Line 137... Line 138...
137
  if len(args) != 1:
138
  if len(args) != 1:
138
    print 'getPaymentForTxnId requires 1 args'
139
    print 'getPaymentForTxnId requires 1 args'
139
    sys.exit(1)
140
    sys.exit(1)
140
  pp.pprint(client.getPaymentForTxnId(eval(args[0]),))
141
  pp.pprint(client.getPaymentForTxnId(eval(args[0]),))
141
 
142
 
-
 
143
elif cmd == 'getPaymentForRechargeTxnId':
-
 
144
  if len(args) != 1:
-
 
145
    print 'getPaymentForRechargeTxnId requires 1 args'
-
 
146
    sys.exit(1)
-
 
147
  pp.pprint(client.getPaymentForRechargeTxnId(eval(args[0]),))
-
 
148
 
142
elif cmd == 'getSuccessfulPaymentForTxnId':
149
elif cmd == 'getSuccessfulPaymentForTxnId':
143
  if len(args) != 1:
150
  if len(args) != 1:
144
    print 'getSuccessfulPaymentForTxnId requires 1 args'
151
    print 'getSuccessfulPaymentForTxnId requires 1 args'
145
    sys.exit(1)
152
    sys.exit(1)
146
  pp.pprint(client.getSuccessfulPaymentForTxnId(eval(args[0]),))
153
  pp.pprint(client.getSuccessfulPaymentForTxnId(eval(args[0]),))