Skip to content

Commit

Permalink
Add empty array when creating payment
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinjuan committed Aug 10, 2019
1 parent 448e26a commit 0e1a2dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Handlers/CreatePaymentHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public function handle(Payable $payable): Payment
$payment->price = $payable->getPayablePrice();
$payment->description = $payable->getPayableDescription();
$payment->gateway_name = config('laravel-payments.default_gateway');
$payment->parameters = [];

$payment->payable()->associate($payable);
$payment->payer()->associate($payable->payer());
Expand Down

0 comments on commit 0e1a2dc

Please sign in to comment.