Refused

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

 

Copy
<?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="1500" currencyCode="GBP" exponent="2" debitCreditIndicator="credit" />
            <lastEvent>REFUSED</lastEvent>
            <riskScore value="0" />
        </payment>
        <journal journalType="REFUSED" description="REFUSED">
            <bookingDate>
                <date dayOfMonth="09" month="11" year="2012" />
            </bookingDate>
        </journal>
    </orderStatusEvent>
    </notify>
</paymentService>