Update Orders.php

This commit is contained in:
2022-09-29 16:01:11 +02:00
committed by GitHub
parent e4378d67c1
commit d44400fcfa

View File

@@ -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;
}