Update HasBitinflowPaymentsWallet.php

This commit is contained in:
2022-09-25 21:53:34 +02:00
committed by GitHub
parent c6c815523c
commit eb30953d8e

View File

@@ -96,7 +96,12 @@ trait HasBitinflowPaymentsWallet
public function chargeBalance(float $amount, string $decription): bool public function chargeBalance(float $amount, string $decription): bool
{ {
try { try {
$order = $this->createOrder($decription); $order = $this->createOrder([
'name' => $decription,
'description' => 'one-time payment',
'amount' => 1,
'price' => $amount,
]);
return $this->checkoutOrder($order->id); return $this->checkoutOrder($order->id);
} catch (GuzzleException $e) { } catch (GuzzleException $e) {