From 334860f87baea5919a7622f3da03fdefa72459d3 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 20 Aug 2020 08:11:46 +1000 Subject: [PATCH] Custom payment drivers --- app/PaymentDrivers/CustomPaymentDriver.php | 79 +++++++++++++++++++ ...40557_add_is_public_to_documents_table.php | 2 +- .../gateways/custom/landing_page.blade.php | 1 + 3 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 app/PaymentDrivers/CustomPaymentDriver.php create mode 100644 resources/views/portal/ninja2020/gateways/custom/landing_page.blade.php diff --git a/app/PaymentDrivers/CustomPaymentDriver.php b/app/PaymentDrivers/CustomPaymentDriver.php new file mode 100644 index 000000000000..dbdb2a428b17 --- /dev/null +++ b/app/PaymentDrivers/CustomPaymentDriver.php @@ -0,0 +1,79 @@ +payment_method = $payment_method_id; + + return $this; + } + + public function processPaymentView($data) + { + + return render('gateways.custom.landing_page', $data); + + } + + public function processPaymentResponse($request) + { + + } + +} diff --git a/database/migrations/2020_08_18_140557_add_is_public_to_documents_table.php b/database/migrations/2020_08_18_140557_add_is_public_to_documents_table.php index 7cc0fbb2606d..d79529118266 100644 --- a/database/migrations/2020_08_18_140557_add_is_public_to_documents_table.php +++ b/database/migrations/2020_08_18_140557_add_is_public_to_documents_table.php @@ -15,7 +15,7 @@ class AddIsPublicToDocumentsTable extends Migration { Schema::table('documents', function (Blueprint $table) { - $table->boolean('is_public')->default(false); + $table->boolean('is_public')->default(true); }); Schema::table('backups', function (Blueprint $table) { diff --git a/resources/views/portal/ninja2020/gateways/custom/landing_page.blade.php b/resources/views/portal/ninja2020/gateways/custom/landing_page.blade.php new file mode 100644 index 000000000000..5129524a8bee --- /dev/null +++ b/resources/views/portal/ninja2020/gateways/custom/landing_page.blade.php @@ -0,0 +1 @@ +stubs \ No newline at end of file