BitCart gateway for Paymenter v1
This commit is contained in:
parent
0f78d1a135
commit
405bc99a97
@ -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;
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Extensions\Gateways\BitCart\BitCart;
|
||||
|
||||
Route::post('/bitcart/webhook', [App\Extensions\Gateways\BitCart\BitCart::class, 'webhook']);
|
||||
Route::post('/extensions/bitcart/webhook', [BitCart::class, 'webhook'])->name('extensions.gateways.bitcart.webhook');
|
||||
|
Loading…
x
Reference in New Issue
Block a user