This section includes XML response examples, mandatory data and notification examples.
This example shows a POLi AU XML order for the direct integration model:
Select
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paymentService PUBLIC '-//WorldPay//DTD WorldPay PaymentService v1//EN' 'dtd/paymentService_v1.dtd'>
<paymentService version="1.4" merchantCode="MERCHANTCODE">
<submit>
<order orderCode='Example_Poli_order'>
<description>Description here</description>
<amount currencyCode='AUD' value='100' exponent='2'/>
<orderContent>Order Content Here</orderContent>
<paymentDetails>
<POLI-SSL shopperCountryCode='AU'>
<successURL>http://www.worldpay.com/successURL</successURL>
<cancelURL>http://www.worldpay.com/cancelURL</cancelURL>
<pendingURL>http://www.worldpay.com/pendingURL</pendingURL>
</POLI-SSL>
</paymentDetails>
<shopper>
<shopperEmailAddress>shopper@worldpay.com</shopperEmailAddress>
</shopper>
</order>
</submit>
</paymentService>
Parameter name | Description |
---|---|
<shopperEmailAddress>
|
The email address of the shopper. |
In this example, the payment is authorised.
<?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="MERCHANTCODE">
<notify>
<orderStatusEvent orderCode="Example_POLi_Order">
<payment>
<paymentMethod>POLI-SSL</paymentMethod>
<amount value="100" currencyCode="AUD" exponent="2" debitCreditIndicator="credit"/>
<lastEvent>AUTHORISED</lastEvent>
<balance accountType="IN_PROCESS_AUTHORISED">
<amount value="100" currencyCode="AUD" exponent="2" debitCreditIndicator="credit"/>
</balance>
</payment>
<journal journalType="AUTHORISED">
<bookingDate>
<date dayOfMonth="12" month="09" year="2014"/>
</bookingDate>
<accountTx accountType="IN_PROCESS_AUTHORISED" batchId="27">
<amount value="100" currencyCode="AUD" exponent="2" debitCreditIndicator="credit"/>
</accountTx>
</journal>
</orderStatusEvent>
</notify>
</paymentService>
Note: The code examples above are in Australian dollars (AUD). New Zealand examples would be identical except in New Zealand dollars (NZD)
Guide feedback?
Email us at: guides@worldpay.com |
![]() ![]() ![]() ![]() ![]() |
© Worldpay 2017. All rights reserved. |