The order in Klarna in PHP only without the iframe?

All good day !
Try to do a checkout via Klarna API in PHP only without iframe
Send order data:

$connector = Klarna\Rest\Transport\Connector::create(
'merchantId',
'sharedSecret',
Klarna\Rest\Transport\ConnectorInterface::EU_TEST_BASE_URL
);

 $checkout = new Klarna\Rest\Checkout\Order($connector);
$checkout->create([
 ...

In the logs look Klarna data came in, and get the answer:
$checkout->fetch();
$orderId = $checkout->getId();

Everything is fine to the value of $orderId received, then it is necessary that this order moved to Orders, on the docks like so:
$order = new Klarna\Rest\OrderManagement\Order($connector, $orderId);

$order->acknowledge();

$order->updateMerchantReferences([
 "merchant_reference1" => "ERG-17",
 "merchant_reference2" => "special order"
 ]);

But
$order = new Klarna\Rest\OrderManagement\Order($connector, $orderId);

Returns nothing, how all the same to finish the order ?
Thanks In Advance !
June 10th 19 at 15:23
0 answer

Find more questions by tags WooCommercePHP