Warning: XMLReader::XML(): Empty string supplied as input in /payu/sdk/OpenPayU/OpenPayUBase.php on line 248

Warning: XMLReader::read(): Load Data before trying to read in /payu/sdk/OpenPayU/OpenPayUBase.php on line 139

Warning: XMLReader::XML(): Empty string supplied as input in /payu/sdk/OpenPayU/OpenPayUBase.php on line 248

Warning: XMLReader::read(): Load Data before trying to read in /payu/sdk/OpenPayU/OpenPayUBase.php on line 139
Order Create Example

Debug console


OpenPayU endpoint for OrderCreateRequest message:
https://sandbox.payu.pl/pl/standard/co/openpayu/OrderCreateRequest

OrderCreateRequest message:
<?xml version="1.0" encoding="UTF-8"?> <OpenPayU xmlns="http://www.openpayu.com/openpayu.xsd"><HeaderRequest><Algorithm>MD5</Algorithm><SenderName>exampleSenderName</SenderName><Version>1.0</Version></HeaderRequest><OrderDomainRequest><OrderCreateRequest><ReqId>46f936852229bf825d0ad90fb83177e9</ReqId><CustomerIp>127.0.0.1</CustomerIp><NotifyUrl>http://images.furs-outlet.com:80/payu/OrderNotifyRequest.php</NotifyUrl><OrderCancelUrl>http://images.furs-outlet.com:80/payu/layout/page_cancel.php</OrderCancelUrl><OrderCompleteUrl>http://images.furs-outlet.com:80/payu/layout/page_success.php</OrderCompleteUrl><Order><MerchantPosId>37857</MerchantPosId><SessionId>d8a8c1978caa6c7414f8d1ab5e91833a</SessionId><OrderUrl>http://images.furs-outlet.com:80/payu/layout/page_cancel.php?order=1834436533</OrderUrl><OrderCreateDate>2019-07-18T13:46:53+02:00</OrderCreateDate><OrderDescription>random description (616a401b70e67591e944cdbdbc057bf3)</OrderDescription><MerchantAuthorizationKey>ArJmhmF</MerchantAuthorizationKey><OrderType>MATERIAL</OrderType><ShoppingCart><GrandTotal>24600</GrandTotal><CurrencyCode>PLN</CurrencyCode><ShoppingCartItems><ShoppingCartItem><Quantity>1</Quantity><Product><Name>random test product</Name><UnitPrice><Gross>12300</Gross><Net>0</Net><Tax>0</Tax><TaxRate>0</TaxRate><CurrencyCode>PLN</CurrencyCode></UnitPrice></Product></ShoppingCartItem><ShoppingCartItem><Quantity>1</Quantity><Product><Name>random test product</Name><UnitPrice><Gross>12300</Gross><Net>0</Net><Tax>0</Tax><TaxRate>0</TaxRate><CurrencyCode>PLN</CurrencyCode></UnitPrice></Product></ShoppingCartItem></ShoppingCartItems></ShoppingCart></Order><ShippingCost><AvailableShippingCost><CountryCode>PL</CountryCode><ShipToOtherCountry>true</ShipToOtherCountry><ShippingCostList><ShippingCost><Type>courier_0</Type><CountryCode>PL</CountryCode><Price><Gross>1220</Gross><Net>0</Net><Tax>0</Tax><TaxRate>0</TaxRate><CurrencyCode>PLN</CurrencyCode></Price></ShippingCost><ShippingCost><Type>courier_1</Type><CountryCode>PL</CountryCode><Price><Gross>861</Gross><Net>700</Net><Tax>161</Tax><TaxRate>23</TaxRate><CurrencyCode>PLN</CurrencyCode></Price></ShippingCost></ShippingCostList></AvailableShippingCost><ShippingCostsUpdateUrl>http://images.furs-outlet.com:80/payu/ShippingCostRetrieveRequest.php</ShippingCostsUpdateUrl></ShippingCost><Customer><Email>example@mail.address.com</Email><FirstName>Jan</FirstName><LastName>Kowalski</LastName><Phone>01234567</Phone><Language>pl_PL</Language><Shipping><Street>Marcelinska</Street><HouseNumber>90</HouseNumber><ApartmentNumber></ApartmentNumber><PostalCode>69-456</PostalCode><City>Poznan</City><CountryCode>PL</CountryCode><AddressType>SHIPPING</AddressType><RecipientName>Jan Kowalski</RecipientName></Shipping><Invoice><Street>Marcelinska</Street><HouseNumber>90</HouseNumber><ApartmentNumber></ApartmentNumber><PostalCode>60-324</PostalCode><City>Poznan</City><CountryCode>PL</CountryCode><AddressType>BILLING</AddressType><RecipientName>PayU SA</RecipientName><TIN>779-23-08-495</TIN></Invoice></Customer></OrderCreateRequest></OrderDomainRequest></OpenPayU>

OrderCreateRequest message:


OrderCreateResponse status:
N;

ERROR: