-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
342 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
use Cone\Bazar\Http\Controllers\GatewayController; | ||
use Illuminate\Support\Facades\Route; | ||
|
||
// Gateway | ||
Route::any('/gateway/{driver}/capture', [GatewayController::class, 'capture'])->name('gateway.capture'); | ||
Route::any('/gateway/{driver}/notification', [GatewayController::class, 'notification'])->name('gateway.notification'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace Cone\Bazar\Events; | ||
|
||
use Cone\Bazar\Models\Order; | ||
use Illuminate\Foundation\Events\Dispatchable; | ||
|
||
class CheckoutFailed | ||
{ | ||
use Dispatchable; | ||
|
||
/** | ||
* The order instance. | ||
*/ | ||
public Order $order; | ||
|
||
/** | ||
* The gateway driver. | ||
*/ | ||
public string $driver; | ||
|
||
/** | ||
* Create a new event instance. | ||
*/ | ||
public function __construct(string $driver, Order $order) | ||
{ | ||
$this->driver = $driver; | ||
$this->order = $order; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace Cone\Bazar\Events; | ||
|
||
use Cone\Bazar\Models\Order; | ||
use Illuminate\Foundation\Events\Dispatchable; | ||
|
||
class PaymentCaptureFailed | ||
{ | ||
use Dispatchable; | ||
|
||
/** | ||
* The order instance. | ||
*/ | ||
public Order $order; | ||
|
||
/** | ||
* The gateway driver. | ||
*/ | ||
public string $driver; | ||
|
||
/** | ||
* Create a new event instance. | ||
*/ | ||
public function __construct(string $driver, Order $order) | ||
{ | ||
$this->driver = $driver; | ||
$this->order = $order; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace Cone\Bazar\Events; | ||
|
||
use Cone\Bazar\Models\Order; | ||
use Illuminate\Foundation\Events\Dispatchable; | ||
|
||
class PaymentCaptured | ||
{ | ||
use Dispatchable; | ||
|
||
/** | ||
* The order instance. | ||
*/ | ||
public Order $order; | ||
|
||
/** | ||
* The gateway driver. | ||
*/ | ||
public string $driver; | ||
|
||
/** | ||
* Create a new event instance. | ||
*/ | ||
public function __construct(string $driver, Order $order) | ||
{ | ||
$this->driver = $driver; | ||
$this->order = $order; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.