Payment methods

This commit is contained in:
David Bomba 2024-06-27 09:13:49 +10:00
parent c315911da4
commit fd7c28880c
6 changed files with 47 additions and 105 deletions

View File

@ -12,11 +12,12 @@
namespace App\Livewire; namespace App\Livewire;
use App\Livewire\Terms; use App\Livewire\Flow2\Terms;
use Livewire\Component; use Livewire\Component;
use App\Utils\HtmlEngine; use App\Utils\HtmlEngine;
use App\Libraries\MultiDB; use App\Libraries\MultiDB;
use App\Livewire\Signature; use App\Livewire\Flow2\PaymentMethod;
use App\Livewire\Flow2\Signature;
use Livewire\Attributes\On; use Livewire\Attributes\On;
use Livewire\Attributes\Computed; use Livewire\Attributes\Computed;
use Livewire\Attributes\Reactive; use Livewire\Attributes\Reactive;
@ -66,6 +67,8 @@ class InvoicePay extends Component
if(!$this->signature_accepted) if(!$this->signature_accepted)
return Signature::class; return Signature::class;
return PaymentMethod::class;
} }
#[Computed()] #[Computed()]

View File

@ -1,25 +0,0 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Livewire;
use Livewire\Component;
class Signature extends Component
{
public function render()
{
return render('components.livewire.signature');
}
}

View File

@ -1,35 +0,0 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Livewire;
use Livewire\Component;
class Terms extends Component
{
public $invoice;
public $context;
public $variables;
public function mount()
{
$this->invoice = $this->context['invoice'];
$this->variables = $this->context['variables'];
}
public function render()
{
return render('components.livewire.terms');
}
}

82
composer.lock generated
View File

@ -481,16 +481,16 @@
}, },
{ {
"name": "aws/aws-crt-php", "name": "aws/aws-crt-php",
"version": "v1.2.5", "version": "v1.2.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/awslabs/aws-crt-php.git", "url": "https://github.com/awslabs/aws-crt-php.git",
"reference": "0ea1f04ec5aa9f049f97e012d1ed63b76834a31b" "reference": "a63485b65b6b3367039306496d49737cf1995408"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/0ea1f04ec5aa9f049f97e012d1ed63b76834a31b", "url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/a63485b65b6b3367039306496d49737cf1995408",
"reference": "0ea1f04ec5aa9f049f97e012d1ed63b76834a31b", "reference": "a63485b65b6b3367039306496d49737cf1995408",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -529,22 +529,22 @@
], ],
"support": { "support": {
"issues": "https://github.com/awslabs/aws-crt-php/issues", "issues": "https://github.com/awslabs/aws-crt-php/issues",
"source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.5" "source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.6"
}, },
"time": "2024-04-19T21:30:56+00:00" "time": "2024-06-13T17:21:28+00:00"
}, },
{ {
"name": "aws/aws-sdk-php", "name": "aws/aws-sdk-php",
"version": "3.314.6", "version": "3.315.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/aws/aws-sdk-php.git", "url": "https://github.com/aws/aws-sdk-php.git",
"reference": "d04da330b0201edab71edd33a03b8d5ad6e4a313" "reference": "a7f6026f00771025c32548dac321541face0dedc"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/d04da330b0201edab71edd33a03b8d5ad6e4a313", "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/a7f6026f00771025c32548dac321541face0dedc",
"reference": "d04da330b0201edab71edd33a03b8d5ad6e4a313", "reference": "a7f6026f00771025c32548dac321541face0dedc",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -624,9 +624,9 @@
"support": { "support": {
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
"issues": "https://github.com/aws/aws-sdk-php/issues", "issues": "https://github.com/aws/aws-sdk-php/issues",
"source": "https://github.com/aws/aws-sdk-php/tree/3.314.6" "source": "https://github.com/aws/aws-sdk-php/tree/3.315.0"
}, },
"time": "2024-06-20T18:09:51+00:00" "time": "2024-06-26T18:08:22+00:00"
}, },
{ {
"name": "bacon/bacon-qr-code", "name": "bacon/bacon-qr-code",
@ -2581,16 +2581,16 @@
}, },
{ {
"name": "google/apiclient-services", "name": "google/apiclient-services",
"version": "v0.360.0", "version": "v0.361.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/googleapis/google-api-php-client-services.git", "url": "https://github.com/googleapis/google-api-php-client-services.git",
"reference": "e48813050e660c7dcbe48cb6556461efe6381a54" "reference": "f90e9a059ce5a6076b4fc8571a4fac6564012782"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/e48813050e660c7dcbe48cb6556461efe6381a54", "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/f90e9a059ce5a6076b4fc8571a4fac6564012782",
"reference": "e48813050e660c7dcbe48cb6556461efe6381a54", "reference": "f90e9a059ce5a6076b4fc8571a4fac6564012782",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2619,9 +2619,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/googleapis/google-api-php-client-services/issues", "issues": "https://github.com/googleapis/google-api-php-client-services/issues",
"source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.360.0" "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.361.0"
}, },
"time": "2024-06-17T01:06:20+00:00" "time": "2024-06-23T01:02:19+00:00"
}, },
{ {
"name": "google/auth", "name": "google/auth",
@ -4609,16 +4609,16 @@
}, },
{ {
"name": "laravel/framework", "name": "laravel/framework",
"version": "v11.11.1", "version": "v11.12.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/framework.git", "url": "https://github.com/laravel/framework.git",
"reference": "c9b52e84bd18f155e5ba59b948c7da3e7f37e87f" "reference": "9a6d9cea83cfa6b9e8eda05c89741d0411d8ebe8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/c9b52e84bd18f155e5ba59b948c7da3e7f37e87f", "url": "https://api.github.com/repos/laravel/framework/zipball/9a6d9cea83cfa6b9e8eda05c89741d0411d8ebe8",
"reference": "c9b52e84bd18f155e5ba59b948c7da3e7f37e87f", "reference": "9a6d9cea83cfa6b9e8eda05c89741d0411d8ebe8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4810,7 +4810,7 @@
"issues": "https://github.com/laravel/framework/issues", "issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework" "source": "https://github.com/laravel/framework"
}, },
"time": "2024-06-20T10:54:53+00:00" "time": "2024-06-25T19:33:56+00:00"
}, },
{ {
"name": "laravel/pint", "name": "laravel/pint",
@ -6513,16 +6513,16 @@
}, },
{ {
"name": "mollie/mollie-api-php", "name": "mollie/mollie-api-php",
"version": "v2.68.0", "version": "v2.69.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/mollie/mollie-api-php.git", "url": "https://github.com/mollie/mollie-api-php.git",
"reference": "a3c383a76b20e3efaa39377c22e570396714830d" "reference": "9a53f8bd6c89ae3e62982921a2f9d8ed68f9900d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/mollie/mollie-api-php/zipball/a3c383a76b20e3efaa39377c22e570396714830d", "url": "https://api.github.com/repos/mollie/mollie-api-php/zipball/9a53f8bd6c89ae3e62982921a2f9d8ed68f9900d",
"reference": "a3c383a76b20e3efaa39377c22e570396714830d", "reference": "9a53f8bd6c89ae3e62982921a2f9d8ed68f9900d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -6599,9 +6599,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/mollie/mollie-api-php/issues", "issues": "https://github.com/mollie/mollie-api-php/issues",
"source": "https://github.com/mollie/mollie-api-php/tree/v2.68.0" "source": "https://github.com/mollie/mollie-api-php/tree/v2.69.0"
}, },
"time": "2024-06-10T09:50:59+00:00" "time": "2024-06-24T11:52:46+00:00"
}, },
{ {
"name": "moneyphp/money", "name": "moneyphp/money",
@ -9022,16 +9022,16 @@
}, },
{ {
"name": "phpseclib/phpseclib", "name": "phpseclib/phpseclib",
"version": "3.0.38", "version": "3.0.39",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpseclib/phpseclib.git", "url": "https://github.com/phpseclib/phpseclib.git",
"reference": "b18b8788e51156c4dd97b7f220a31149a0052067" "reference": "211ebc399c6e73c225a018435fe5ae209d1d1485"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/b18b8788e51156c4dd97b7f220a31149a0052067", "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/211ebc399c6e73c225a018435fe5ae209d1d1485",
"reference": "b18b8788e51156c4dd97b7f220a31149a0052067", "reference": "211ebc399c6e73c225a018435fe5ae209d1d1485",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -9112,7 +9112,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/phpseclib/phpseclib/issues", "issues": "https://github.com/phpseclib/phpseclib/issues",
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.38" "source": "https://github.com/phpseclib/phpseclib/tree/3.0.39"
}, },
"funding": [ "funding": [
{ {
@ -9128,7 +9128,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-06-17T10:11:32+00:00" "time": "2024-06-24T06:27:33+00:00"
}, },
{ {
"name": "phpstan/phpdoc-parser", "name": "phpstan/phpdoc-parser",
@ -19006,16 +19006,16 @@
}, },
{ {
"name": "spatie/error-solutions", "name": "spatie/error-solutions",
"version": "1.0.1", "version": "1.0.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/spatie/error-solutions.git", "url": "https://github.com/spatie/error-solutions.git",
"reference": "d60d4d2ef4b7701c86134ded959667cac6215233" "reference": "9782ba6e25cb026cc653619e01ca695d428b3f03"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/spatie/error-solutions/zipball/d60d4d2ef4b7701c86134ded959667cac6215233", "url": "https://api.github.com/repos/spatie/error-solutions/zipball/9782ba6e25cb026cc653619e01ca695d428b3f03",
"reference": "d60d4d2ef4b7701c86134ded959667cac6215233", "reference": "9782ba6e25cb026cc653619e01ca695d428b3f03",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -19068,7 +19068,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/spatie/error-solutions/issues", "issues": "https://github.com/spatie/error-solutions/issues",
"source": "https://github.com/spatie/error-solutions/tree/1.0.1" "source": "https://github.com/spatie/error-solutions/tree/1.0.2"
}, },
"funding": [ "funding": [
{ {
@ -19076,7 +19076,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2024-06-21T10:09:00+00:00" "time": "2024-06-26T13:09:17+00:00"
}, },
{ {
"name": "spatie/flare-client-php", "name": "spatie/flare-client-php",

File diff suppressed because one or more lines are too long

View File

@ -240,7 +240,7 @@
"src": "resources/js/setup/setup.js" "src": "resources/js/setup/setup.js"
}, },
"resources/sass/app.scss": { "resources/sass/app.scss": {
"file": "assets/app-26306e87.css", "file": "assets/app-4cad835a.css",
"isEntry": true, "isEntry": true,
"src": "resources/sass/app.scss" "src": "resources/sass/app.scss"
} }