Skip to content

Commit b718b73

Browse files
committed
Card fix
Signed-off-by: Muharrem ERİN <me@mewebstudio.com>
1 parent 9000720 commit b718b73

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/LaravelPos.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,23 @@ public function account(array $account)
9292
* Prepare Order
9393
*
9494
* @param array $order
95+
* @param array [] $card
9596
* @return $this
9697
*/
97-
public function prepare(array $order)
98+
public function prepare(array $order, array $card = [])
9899
{
99-
$this->pos->prepare($order);
100+
$this->pos->prepare($order, $card);
100101

101102
return $this;
102103
}
103104

104105
/**
105106
* Payment
106107
*
107-
* @param array $card
108+
* @param array [] $card
108109
* @return $this
109110
*/
110-
public function payment(array $card)
111+
public function payment(array $card = [])
111112
{
112113
$this->pos->payment($card);
113114

0 commit comments

Comments
 (0)