| Line 186... |
Line 186... |
| 186 |
pass
|
186 |
pass
|
| 187 |
|
187 |
|
| 188 |
def capturePayment(self, merchantTxnId):
|
188 |
def capturePayment(self, merchantTxnId):
|
| 189 |
"""
|
189 |
"""
|
| 190 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
190 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
| 191 |
transaction. PaymentException with error code 104 is thrown in case no payments are found for the transaction id passed.
|
191 |
transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
| 192 |
PaymentException is also thrown with error code 106 in case capture was not possible due to connection
|
192 |
code 104 is thrown in case no payments are found for the transaction id passed. PaymentException is also
|
| 193 |
issue. Here, we payment also gets updated to CAPTURE_INPROCESS state
|
193 |
thrown with error code 106 in case capture was not possible due to connection
|
| - |
|
194 |
issue.
|
| 194 |
|
195 |
|
| 195 |
Parameters:
|
196 |
Parameters:
|
| 196 |
- merchantTxnId
|
197 |
- merchantTxnId
|
| 197 |
"""
|
198 |
"""
|
| 198 |
pass
|
199 |
pass
|
| 199 |
|
200 |
|
| 200 |
def refundPayment(self, merchantTxnId, amount, isDigital):
|
201 |
def refundPayment(self, merchantTxnId, amount, isDigital):
|
| 201 |
"""
|
202 |
"""
|
| 202 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
203 |
Refund the payment for the given merchant transaction id. It processes the last payment for the given
|
| 203 |
transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
204 |
transaction. If refund will be failed nothing will be updated in database.
|
| 204 |
code 104 is thrown in case no payments are found for the transaction id passed. PaymentException is also
|
- |
|
| 205 |
thrown with error code 106 in case capture was not possible due to connection
|
- |
|
| 206 |
issue.
|
- |
|
| 207 |
|
205 |
|
| 208 |
Parameters:
|
206 |
Parameters:
|
| 209 |
- merchantTxnId
|
207 |
- merchantTxnId
|
| 210 |
- amount
|
208 |
- amount
|
| 211 |
- isDigital
|
209 |
- isDigital
|
| Line 828... |
Line 826... |
| 828 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
|
826 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
|
| 829 |
|
827 |
|
| 830 |
def capturePayment(self, merchantTxnId):
|
828 |
def capturePayment(self, merchantTxnId):
|
| 831 |
"""
|
829 |
"""
|
| 832 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
830 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
| 833 |
transaction. PaymentException with error code 104 is thrown in case no payments are found for the transaction id passed.
|
831 |
transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
| 834 |
PaymentException is also thrown with error code 106 in case capture was not possible due to connection
|
832 |
code 104 is thrown in case no payments are found for the transaction id passed. PaymentException is also
|
| 835 |
issue. Here, we payment also gets updated to CAPTURE_INPROCESS state
|
833 |
thrown with error code 106 in case capture was not possible due to connection
|
| - |
|
834 |
issue.
|
| 836 |
|
835 |
|
| 837 |
Parameters:
|
836 |
Parameters:
|
| 838 |
- merchantTxnId
|
837 |
- merchantTxnId
|
| 839 |
"""
|
838 |
"""
|
| 840 |
self.send_capturePayment(merchantTxnId)
|
839 |
self.send_capturePayment(merchantTxnId)
|
| Line 864... |
Line 863... |
| 864 |
raise result.pe
|
863 |
raise result.pe
|
| 865 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
|
864 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
|
| 866 |
|
865 |
|
| 867 |
def refundPayment(self, merchantTxnId, amount, isDigital):
|
866 |
def refundPayment(self, merchantTxnId, amount, isDigital):
|
| 868 |
"""
|
867 |
"""
|
| 869 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
868 |
Refund the payment for the given merchant transaction id. It processes the last payment for the given
|
| 870 |
transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
869 |
transaction. If refund will be failed nothing will be updated in database.
|
| 871 |
code 104 is thrown in case no payments are found for the transaction id passed. PaymentException is also
|
- |
|
| 872 |
thrown with error code 106 in case capture was not possible due to connection
|
- |
|
| 873 |
issue.
|
- |
|
| 874 |
|
870 |
|
| 875 |
Parameters:
|
871 |
Parameters:
|
| 876 |
- merchantTxnId
|
872 |
- merchantTxnId
|
| 877 |
- amount
|
873 |
- amount
|
| 878 |
- isDigital
|
874 |
- isDigital
|