CyberSource/cybersource-sdk-php

how to void the transaction using trans id

sivajik34 opened this issue · 1 comments

can you give example to void the transaction

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header>
    <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
      <wsse:UsernameToken>
        <wsse:Username>{{username}}</wsse:Username>
        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">{{password}}</wsse:Password>
      </wsse:UsernameToken>
    </wsse:Security>
  </soapenv:Header>
  <soapenv:Body>
    <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-{{version}}">
       <merchantID>{{username}}</merchantID>
      <merchantReferenceCode>{{MRN}}</merchantReferenceCode>
        <voidService run="true">
           <voidRequestID>{{TransactionReferenceNumber}}</voidRequestID>
        </voidService>
</requestMessage>
  </soapenv:Body>
</soapenv:Envelope>