From 405bc99a979ea58fa5d742cd82cd70a14b33e21e Mon Sep 17 00:00:00 2001 From: Sahag Arzoumanian Date: Tue, 1 Jul 2025 15:45:49 -0700 Subject: [PATCH] BitCart gateway for Paymenter v1 --- BitCart.php | 9 ++++++++- routes.php | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/BitCart.php b/BitCart.php index c19a0dc..d592962 100644 --- a/BitCart.php +++ b/BitCart.php @@ -11,6 +11,11 @@ use Illuminate\Http\Request; class BitCart extends Gateway { + + public function boot() + { + require __DIR__ . '/routes.php'; + } /** * Get the extension metadata * @@ -60,11 +65,13 @@ class BitCart extends Gateway * * @param int $total * @param array $products + * @param Invoice $invoice * @param int $invoiceId * @return string */ - public function pay($total, $products, $invoiceId) + public function pay(Invoice $invoice, $total) { + $invoiceId = $invoice->id; $payment_url = $this->get_payment_url($invoiceId,$total); return $payment_url; } diff --git a/routes.php b/routes.php index 28acaf9..1f8c4c5 100644 --- a/routes.php +++ b/routes.php @@ -1,5 +1,6 @@ name('extensions.gateways.bitcart.webhook');