Skip to content

Commit

Permalink
feat(payment): add BasePaymentGateway and WithPaymentProfile integration
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Feb 22, 2025
1 parent a43219e commit 7229e6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Classes/BasePaymentGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Igniter\Flame\Traits\EventEmitter;
use Igniter\Main\Classes\ThemeManager;
use Igniter\PayRegister\Concerns\WithApplicableFee;
use Igniter\PayRegister\Concerns\WithPaymentProfile;
use Igniter\System\Actions\ModelAction;
use Illuminate\Support\Facades\URL;

Expand All @@ -17,6 +18,7 @@ class BasePaymentGateway extends ModelAction
{
use EventEmitter;
use WithApplicableFee;
use WithPaymentProfile;

protected $orderModel = \Igniter\Cart\Models\Order::class;

Expand Down
3 changes: 3 additions & 0 deletions src/Models/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Igniter\Flame\Database\Traits\Purgeable;
use Igniter\Flame\Database\Traits\Sortable;
use Igniter\Flame\Exception\ApplicationException;
use Igniter\PayRegister\Classes\BasePaymentGateway;
use Igniter\PayRegister\Classes\PaymentGateways;
use Igniter\System\Models\Concerns\Defaultable;
use Igniter\System\Models\Concerns\Switchable;
Expand All @@ -23,9 +24,11 @@
* @property bool $status
* @property bool $is_default
* @property int $priority
* @property float|int $order_total
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @mixin \Igniter\Flame\Database\Model
* @mixin BasePaymentGateway
*/
class Payment extends Model
{
Expand Down

0 comments on commit 7229e6e

Please sign in to comment.