From d44400fcfa11973cd21afc72aeea9a59a7fca7cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurice=20Preu=C3=9F?= Date: Thu, 29 Sep 2022 16:01:11 +0200 Subject: [PATCH] Update Orders.php --- .../Traits/BitinflowPaymentsWallet/Orders.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Accounts/Traits/BitinflowPaymentsWallet/Orders.php b/src/Accounts/Traits/BitinflowPaymentsWallet/Orders.php index 1f7db3a..32835c2 100644 --- a/src/Accounts/Traits/BitinflowPaymentsWallet/Orders.php +++ b/src/Accounts/Traits/BitinflowPaymentsWallet/Orders.php @@ -10,7 +10,7 @@ class Orders { // } - + /** * Get orders from user. * @@ -33,18 +33,11 @@ class Orders /** * Create a new order. * - * @param array $order_items * @param array $attributes - * @param bool $checkout optional checkout it directly * @return object|false */ - public function create(array $order_items = [], array $attributes = [], bool $checkout = false): object|false + public function create(array $attributes = []): object|false { - $attributes = array_merge($attributes, [ - 'order_items' => $order_items, - 'checkout' => $checkout - ]); - return $this->user->asPaymentsUser('POST', 'orders', $attributes)->data; }