| Line 226... |
Line 226... |
| 226 |
i64 createRefund(1:i64 orderId, 2:i64 merchantTxnId, 3:double amount) throws (1:PaymentException pe),
|
226 |
i64 createRefund(1:i64 orderId, 2:i64 merchantTxnId, 3:double amount) throws (1:PaymentException pe),
|
| 227 |
|
227 |
|
| 228 |
/**
|
228 |
/**
|
| 229 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
229 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
| 230 |
transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
230 |
transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
| 231 |
code 104 is thrown in case no payments are found for the transaction id passed.
|
231 |
code 104 is thrown in case no payments are found for the transaction id passed. PaymentException is also
|
| - |
|
232 |
thrown with error code 106 in case capture was not possible due to connection
|
| - |
|
233 |
issue.
|
| - |
|
234 |
*/
|
| - |
|
235 |
bool capturePayment(1:i64 merchantTxnId) throws (1:PaymentException pe),
|
| - |
|
236 |
|
| - |
|
237 |
/**
|
| - |
|
238 |
Refund the payment for the given merchant transaction id. It processes the last payment for the given
|
| - |
|
239 |
transaction. PaymentException with error code 104 is thrown in case no payments are found for the transaction id passed.
|
| 232 |
PaymentException is also thrown with error code 106 in case capture was not possible due to connection
|
240 |
PaymentException is also thrown with error code 106 in case capture was not possible due to connection
|
| 233 |
issue. Here, we payment also gets updated to CAPTURE_INPROCESS state
|
241 |
issue. Here, we payment also gets updated to CAPTURE_INPROCESS state
|
| 234 |
*/
|
242 |
*/
|
| 235 |
bool capturePayment(1:i64 merchantTxnId) throws (1:PaymentException pe),
|
243 |
bool refundPayment(1:i64 merchantTxnId, 2:double amount, 3:bool isDigital) throws (1:PaymentException pe),
|
| - |
|
244 |
|
| 236 |
|
245 |
|
| 237 |
/**
|
246 |
/**
|
| 238 |
Adds the given amount to the captured amount of a COD payment.
|
247 |
Adds the given amount to the captured amount of a COD payment.
|
| 239 |
Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
|
248 |
Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
|
| 240 |
If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
|
249 |
If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
|