Cancelled

This is an example of the XML code for an order notification when the order status is CANCELLED.

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE paymentService PUBLIC "-//WorldPay//DTD WorldPay PaymentService v1//EN" "http://dtd.worldpay.com/paymentService_v1.dtd">

<paymentService version="1.4" merchantCode=MERCHANT_CODE> <!--Will contain the merchant code used in the request-->

  <notify>

    <orderStatusEvent orderCode=ORDER_CODE> <!--Will contain the order code used in the request-->

      <payment>

        <paymentMethod>PAYPAL-EXPRESS</paymentMethod>

        <amount value="5000" currencyCode="GBP" exponent="2" debitCreditIndicator="credit" />

        <lastEvent>CANCELLED</lastEvent>

        <riskScore value="100" />

      </payment>

      <journal journalType="CANCELLED">

        <bookingDate>

          <date dayOfMonth="09" month="11" year="2012" />

        </bookingDate>

        <accountTx accountType="IN_PROCESS_AUTHORISED" batchId="2058">

          <amount value="5000" currencyCode="GBP" exponent="2" debitCreditIndicator="debit" />

        </accountTx>

      </journal>

    </orderStatusEvent>

  </notify>

</paymentService>

Guide feedback?
Email us at: guides@worldpay.com
© Worldpay 2018. All rights reserved.