mirror of
https://github.com/bitinflow/accounts.git
synced 2026-03-13 13:35:52 +00:00
Update HasBitinflowPaymentsWallet.php
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user