| Line 164... |
Line 164... |
| 164 |
*/
|
164 |
*/
|
| 165 |
public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
|
165 |
public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
|
| 166 |
|
166 |
|
| 167 |
/**
|
167 |
/**
|
| 168 |
* Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
168 |
* Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
| - |
|
169 |
* transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
| 169 |
* transaction. PaymentException with error code 104 is thrown in case no payments are found for the transaction id passed.
|
170 |
* code 104 is thrown in case no payments are found for the transaction id passed. PaymentException is also
|
| 170 |
* PaymentException is also thrown with error code 106 in case capture was not possible due to connection
|
171 |
* thrown with error code 106 in case capture was not possible due to connection
|
| 171 |
* issue. Here, we payment also gets updated to CAPTURE_INPROCESS state
|
172 |
* issue.
|
| 172 |
*
|
173 |
*
|
| 173 |
* @param merchantTxnId
|
174 |
* @param merchantTxnId
|
| 174 |
*/
|
175 |
*/
|
| 175 |
public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException;
|
176 |
public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException;
|
| 176 |
|
177 |
|
| 177 |
/**
|
178 |
/**
|
| 178 |
* Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
179 |
* Refund the payment for the given merchant transaction id. It processes the last payment for the given
|
| 179 |
* transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
180 |
* transaction. If refund will be failed nothing will be updated in database.
|
| 180 |
* code 104 is thrown in case no payments are found for the transaction id passed. PaymentException is also
|
- |
|
| 181 |
* thrown with error code 106 in case capture was not possible due to connection
|
- |
|
| 182 |
* issue.
|
- |
|
| 183 |
*
|
181 |
*
|
| 184 |
* @param merchantTxnId
|
182 |
* @param merchantTxnId
|
| 185 |
* @param amount
|
183 |
* @param amount
|
| 186 |
* @param isDigital
|
184 |
* @param isDigital
|
| 187 |
*/
|
185 |
*/
|