<form action="<?php echo e($paypal_url); ?>" method="post" name="frmTransaction" id="frmTransaction">
    <input type="hidden" name="business" value="<?php echo e($paypal_id); ?>"/>
    <input type="hidden" name="cmd" value="_xclick"/>
    <input type="hidden" name="item_name" value="Invoice No. <?php echo e($invoice->number); ?>"/>
    <input type="hidden" name="item_number" value="<?php echo e($invoice->uuid); ?>">
    <input type="hidden" name="amount" value="<?php echo e(currency_convert(getCurrencyId($invoice->currency),$invoice_totals['amountDue'])); ?>"/>
    <input type="hidden" name="currency_code" value="<?php echo e(defaultCurrencyCode()); ?>"/>
    <input type="hidden" name="rm" value="2" />
    <input type="hidden" name="notify_url" value="<?php echo e(route('paypal_notify')); ?>"/>
    <input type="hidden" name="cancel_return" value="<?php echo e(route('getCancel',$invoice->uuid)); ?>"/>
    <input type="hidden" name="return" value="<?php echo e(route('getDone')); ?>"/>
</form>
<script>document.frmTransaction.submit();</script>