* or test/SerializationTest */ $order = new Order(); $seller = new Account(); //important!! change this to your actual e-mail, or the example will not work $seller->setEmail('*****@*****.**'); $order->setSeller($seller); $buyer = new Account(); $buyer->setEmail('*****@*****.**'); $order->setBuyer($buyer); $order->setCurrencyCode('EUR'); $orderItem = new OrderItem(); $orderItem->setType('I'); $orderItem->setName('Some random goods'); $orderItem->setPriceUnit(12.34); $orderItem->setQuantity(1.23); $order->addOrderItem($orderItem); $order->validate(); /** * submit order and cancel */ $wrappedOrder = $client->submitOrder($order); $orderList = $client->orderStatus($wrappedOrder->getOrder()->getUid(), 'CA'); ?> <strong>Cancelled order status</strong> <pre> <?php print_r($orderList->toArray()); ?> <pre> <?php