From eb30953d8efc4dc77ce4925ae0d71546340543a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurice=20Preu=C3=9F?= Date: Sun, 25 Sep 2022 21:53:34 +0200 Subject: [PATCH] Update HasBitinflowPaymentsWallet.php --- src/Accounts/Traits/HasBitinflowPaymentsWallet.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Accounts/Traits/HasBitinflowPaymentsWallet.php b/src/Accounts/Traits/HasBitinflowPaymentsWallet.php index c8d7cb8..d279747 100644 --- a/src/Accounts/Traits/HasBitinflowPaymentsWallet.php +++ b/src/Accounts/Traits/HasBitinflowPaymentsWallet.php @@ -96,7 +96,12 @@ trait HasBitinflowPaymentsWallet public function chargeBalance(float $amount, string $decription): bool { try { - $order = $this->createOrder($decription); + $order = $this->createOrder([ + 'name' => $decription, + 'description' => 'one-time payment', + 'amount' => 1, + 'price' => $amount, + ]); return $this->checkoutOrder($order->id); } catch (GuzzleException $e) {