mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 21:52:35 +01:00
62 lines
1.7 KiB
PHP
62 lines
1.7 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
*/
|
|
|
|
namespace App\Livewire\BillingPortal;
|
|
|
|
use Livewire\Component;
|
|
use Livewire\Attributes\Lazy;
|
|
use App\Services\ClientPortal\InstantPayment;
|
|
|
|
#[Lazy]
|
|
class Submit extends Component
|
|
{
|
|
public array $context;
|
|
|
|
public function mount()
|
|
{
|
|
|
|
// $request = new \Illuminate\Http\Request([
|
|
// 'sidebar' => 'hidden',
|
|
// 'hash' => $this->context['hash'],
|
|
// 'action' => 'payment',
|
|
// 'invoices' => [
|
|
// $this->context['form']['invoice_hashed_id'],
|
|
// ],
|
|
// 'payable_invoices' => [
|
|
// [
|
|
// 'amount' => $this->context['form']['payable_amount'],
|
|
// 'invoice_id' => $this->context['form']['invoice_hashed_id'],
|
|
// ],
|
|
// ],
|
|
// 'company_gateway_id' => $this->context['form']['company_gateway_id'],
|
|
// 'payment_method_id' => $this->context['form']['payment_method_id'],
|
|
// 'contact_first_name' => $this->context['contact']['first_name'],
|
|
// 'contact_last_name' => $this->context['contact']['last_name'],
|
|
// 'contact_email' => $this->context['contact']['email'],
|
|
// ]);
|
|
|
|
// return redirect((new InstantPayment($request))->run());
|
|
|
|
$this->dispatch('purchase.submit');
|
|
|
|
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
|
|
return <<<'HTML'
|
|
<div></div>
|
|
HTML;
|
|
}
|
|
}
|