key) {
?>
The invoice could not be found.
(string) $_offer->calculate(Calculatable::TOTAL),
'paymentMethodNonce' => $nonce,
'options' => [
'submitForSettlement' => true
]
]);
if (!$trans->success) {
echo '
';
} else {
try {
$payment = $_offer->createPayment();
$payment->braintree_id = $trans->transaction->id;
echo '
Thank you for your payment.
';
} catch (Exception $e) {
echo '
';
}
}
} else {
$subtotal = Constants::invoice_valuta . $_offer->calculate(Calculatable::SUBTOTAL);
$total = Constants::invoice_valuta . $_offer->calculate(Calculatable::TOTAL);
?>
Welcome to the checkout environment. Please review the invoice carefully.
Description |
Price excl. |
VAT |
Price incl. |
getItems() as $item) {
$i++;
echo '';
echo "
{$item->title}
{$item->getHTMLDescription()}
| ";
echo "".Constants::invoice_valuta."{$item->calculate(Calculatable::SUBTOTAL)} | ";
echo "{$item->VAT_percentage}% | ";
echo "".Constants::invoice_valuta."{$item->calculate(Calculatable::TOTAL)} | ";
echo '
';
}
?>
Subtotal |
=$subtotal?> |
Total |
=$total?> |