Skip to content

Commit 19be11f

Browse files
committed
Payment fix
Signed-off-by: Muharrem ERİN <[email protected]>
1 parent 02b1e9e commit 19be11f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/LaravelPos.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ public function account(array $account)
9494
* Prepare Order
9595
*
9696
* @param array $order
97+
* @param array $card
9798
* @return $this
9899
*/
99-
public function prepare(array $order)
100+
public function prepare(array $order, array $card = [])
100101
{
101-
$this->pos->prepare($order);
102+
$this->pos->prepare($order, $card);
102103

103104
return $this;
104105
}
@@ -109,7 +110,7 @@ public function prepare(array $order)
109110
* @param array $card
110111
* @return $this
111112
*/
112-
public function payment(array $card)
113+
public function payment(array $card = [])
113114
{
114115
$this->pos->payment($card);
115116

0 commit comments

Comments
 (0)