| Line 102... |
Line 102... |
| 102 |
15:string gatewayTxnDate,
|
102 |
15:string gatewayTxnDate,
|
| 103 |
16:list<Attribute> attributes, // list of all attributes received from PG
|
103 |
16:list<Attribute> attributes, // list of all attributes received from PG
|
| 104 |
17:i64 initTimestamp, //statring the payment processing timestamp
|
104 |
17:i64 initTimestamp, //statring the payment processing timestamp
|
| 105 |
18:i64 successTimestamp, //timestamp when payment is captured
|
105 |
18:i64 successTimestamp, //timestamp when payment is captured
|
| 106 |
19:i64 errorTimestamp, // in case, error is received from PG
|
106 |
19:i64 errorTimestamp, // in case, error is received from PG
|
| 107 |
20:i64 provisionalCaptureTimestamp // in case, error is received from PG
|
107 |
20:i64 provisionalCaptureTimestamp, // in case, error is received from PG
|
| - |
|
108 |
21:bool isDigital
|
| 108 |
}
|
109 |
}
|
| 109 |
|
110 |
|
| 110 |
struct Refund{
|
111 |
struct Refund{
|
| 111 |
1:i64 id,
|
112 |
1:i64 id,
|
| 112 |
2:i64 paymentId,
|
113 |
2:i64 paymentId,
|
| Line 132... |
Line 133... |
| 132 |
|
133 |
|
| 133 |
service PaymentService extends GenericService.GenericService{
|
134 |
service PaymentService extends GenericService.GenericService{
|
| 134 |
/**
|
135 |
/**
|
| 135 |
create a new payment and return payment id, throws an exception if gateway is not active
|
136 |
create a new payment and return payment id, throws an exception if gateway is not active
|
| 136 |
*/
|
137 |
*/
|
| 137 |
i64 createPayment(1:i64 userId, 2:double amount, 3:i64 gatewayId, 4:i64 txnId) throws (1:PaymentException pe),
|
138 |
i64 createPayment(1:i64 userId, 2:double amount, 3:i64 gatewayId, 4:i64 txnId, 5:bool isDigital) throws (1:PaymentException pe),
|
| 138 |
|
139 |
|
| 139 |
/**
|
140 |
/**
|
| 140 |
Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
|
141 |
Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
|
| 141 |
*/
|
142 |
*/
|
| 142 |
list<Payment> getPaymentsForUser(1:i64 userId, 2:i64 fromTime, 3:i64 toTime, 4:PaymentStatus status, 5:i64 gatewayId) throws (1:PaymentException pe),
|
143 |
list<Payment> getPaymentsForUser(1:i64 userId, 2:i64 fromTime, 3:i64 toTime, 4:PaymentStatus status, 5:i64 gatewayId) throws (1:PaymentException pe),
|
| Line 199... |
Line 200... |
| 199 |
In case of any processing error, an exception is raised.
|
200 |
In case of any processing error, an exception is raised.
|
| 200 |
*/
|
201 |
*/
|
| 201 |
string initializeHdfcPayment(1:i64 merchantPaymentId) throws (1:PaymentException pe),
|
202 |
string initializeHdfcPayment(1:i64 merchantPaymentId) throws (1:PaymentException pe),
|
| 202 |
|
203 |
|
| 203 |
/**
|
204 |
/**
|
| - |
|
205 |
Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
|
| - |
|
206 |
In case of any processing error, an exception is raised.
|
| - |
|
207 |
*/
|
| - |
|
208 |
string doHdfcPaymentForDigitalOrder(1:i64 merchantPaymentId, 2:i64 rechargeOrderId) throws (1:PaymentException pe),
|
| - |
|
209 |
|
| - |
|
210 |
/**
|
| 204 |
Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
|
211 |
Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
|
| 205 |
In case of any processing error, an exception is raised.
|
212 |
In case of any processing error, an exception is raised.
|
| 206 |
*/
|
213 |
*/
|
| 207 |
string initializeHdfcEmiPayment(1:i64 merchantPaymentId) throws (1:PaymentException pe),
|
214 |
string initializeHdfcEmiPayment(1:i64 merchantPaymentId) throws (1:PaymentException pe),
|
| 208 |
|
215 |
|