Subversion Repositories SmartDukaan

Rev

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

Rev 4141 Rev 4421
Line 156... Line 156...
156
    pass
156
    pass
157
 
157
 
158
  def capturePayment(self, merchantTxnId):
158
  def capturePayment(self, merchantTxnId):
159
    """
159
    """
160
    Capture the payment for the given merchant transaction id. It processes the last payment for the given
160
    Capture the payment for the given merchant transaction id. It processes the last payment for the given
161
    transaction. If the capture attempt failed, the payment is marked as failed.
161
    transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
-
 
162
    code 104 is	thrown in case no payments are found for the transaction id passed.
-
 
163
    PaymentException is also thrown with error code 106 in case capture was not possible due to connection
-
 
164
    issue. Here, we	payment also gets updated to CAPTURE_INPROCESS state
162
 
165
 
163
    Parameters:
166
    Parameters:
164
     - merchantTxnId
167
     - merchantTxnId
165
    """
168
    """
166
    pass
169
    pass
Line 674... Line 677...
674
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
677
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
675
 
678
 
676
  def capturePayment(self, merchantTxnId):
679
  def capturePayment(self, merchantTxnId):
677
    """
680
    """
678
    Capture the payment for the given merchant transaction id. It processes the last payment for the given
681
    Capture the payment for the given merchant transaction id. It processes the last payment for the given
679
    transaction. If the capture attempt failed, the payment is marked as failed.
682
    transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
-
 
683
    code 104 is	thrown in case no payments are found for the transaction id passed.
-
 
684
    PaymentException is also thrown with error code 106 in case capture was not possible due to connection
-
 
685
    issue. Here, we	payment also gets updated to CAPTURE_INPROCESS state
680
 
686
 
681
    Parameters:
687
    Parameters:
682
     - merchantTxnId
688
     - merchantTxnId
683
    """
689
    """
684
    self.send_capturePayment(merchantTxnId)
690
    self.send_capturePayment(merchantTxnId)