This is an example of the XML code for an order notification when the order status is CAPTURED.
<?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="5500" currencyCode="GBP" exponent="2" debitCreditIndicator="credit" />
<lastEvent>CAPTURED</lastEvent>
<riskScore value="0" />
</payment>
<journal journalType="CAPTURED">
<bookingDate>
<date dayOfMonth="05" month="11" year="2012" />
</bookingDate>
<accountTx accountType="IN_PROCESS_CAPTURED" batchId="1910">
<amount value="5500" currencyCode="GBP" exponent="2" debitCreditIndicator="credit" />
</accountTx>
<accountTx accountType="IN_PROCESS_AUTHORISED" batchId="2047">
<amount value="5500" currencyCode="GBP" exponent="2" debitCreditIndicator="debit" />
</accountTx>
</journal>
</orderStatusEvent>
</notify>
</paymentService>
Guide feedback?
Email us at: guides@worldpay.com |
![]() ![]() ![]() ![]() ![]() |
© Worldpay 2018. All rights reserved. |