$order->sAmount =
$basket[CheckoutKey::AMOUNT
];
$order->sAmountWithTax = !
empty($basket[CartKey::AMOUNT_WITH_TAX_NUMERIC
]) ?
$basket[CartKey::AMOUNT_WITH_TAX_NUMERIC
] :
$basket[CartKey::AMOUNT_NUMERIC
];
$order->sAmountNet =
$basket[CartKey::AMOUNT_NET_NUMERIC
];
$order->sShippingcosts =
$basket[CheckoutKey::SHIPPING_COSTS
];
$order->sShippingcostsNumeric =
$basket[CheckoutKey::SHIPPING_COSTS_WITH_TAX
];
$order->sShippingcostsNumericNet =
$basket[CheckoutKey::SHIPPING_COSTS_NET
];
$order->bookingId =
$transactionId;
$order->dispatchId =
Shopware()->
Session()->
get('sDispatch'
);
$order->sNet =
empty($user['additional'
]['charge_vat'
]);
$order->uniqueID =
$paymentUniqueId;
$order->deviceType =
$this->
Request()->
getDeviceType();
$orderNumber =
$order->
sSaveOrder();
} if (!
empty($orderNumber) && !
empty($paymentStatusId)) { $this->
savePaymentStatus($transactionId,
$paymentUniqueId,
$paymentStatusId,
$sendStatusMail);
} return $orderNumber;
} /**
* Saves the payment status an sends and possibly sends a status email.
*
* @param string $transactionId
* @param string $paymentUniqueId
* @param int $paymentStatusId
* @param bool $sendStatusMail
*/