Capture

Capture

The Capture web method completes a transaction for a prior authorization.

Arguments

Name Type Description
Credentials MerchantCredentials A MerchantCredentials object used to authenticate against Merchantware.
Request CaptureRequest A CaptureRequest object containing the transactional data used capture a previous authorization and place it into the batch.

Response

A TransactionResponse45 object is returned.

Notes

This method captures a previous authorization and adds it to the current batch for settlement.
If you wish to cancel a transaction created with the Capture method, you may use the Void method. However they cannot be applied once the transaction has been batched.

Example SOAP Request

Sample Request Packet (raw)
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
   <soap:Body>
      <Capture xmlns="http://schemas.merchantwarehouse.com/merchantware/v45/">
         <Credentials>
            <MerchantName>Zero Inc</MerchantName>
            <MerchantSiteId>00000000</MerchantSiteId>
            <MerchantKey>00000-00000-00000-00000-00000</MerchantKey>
         </Credentials>
         <Request>
            <Token>608939</Token>
            <Amount>1.50</Amount>
            <InvoiceNumber>1556</InvoiceNumber>
            <RegisterNumber>35</RegisterNumber>
            <MerchantTransactionId>167902</MerchantTransactionId>
            <CardAcceptorTerminalId>3</CardAcceptorTerminalId>
         </Request>
      </Capture>
   </soap:Body>
</soap:Envelope>

Sample Return Packet
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CaptureResponse xmlns="http://schemas.merchantwarehouse.com/merchantware/v45/">
         <CaptureResult>
            <ApprovalStatus>APPROVED</ApprovalStatus>
            <Token>608961</Token>
            <AuthorizationCode>OK036C</AuthorizationCode>
            <TransactionDate>3/14/2016 8:09:31 PM</TransactionDate>
            <Amount>1.50</Amount>
            <RemainingCardBalance/>
            <CardNumber/>
            <Cardholder/>
            <CardType>0</CardType>
            <FsaCard/>
            <ReaderEntryMode>3</ReaderEntryMode>
            <AvsResponse/>
            <CvResponse/>
            <ErrorMessage/>
            <ExtraData/>
            <Rfmiq>10000ABCDE</Rfmiq>
         </CaptureResult>
      </CaptureResponse>
   </soap:Body>
</soap:Envelope>