savePaymentStatus example

$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 */
Home | Imprint | This part of the site doesn't use cookies.