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:
@@ -308,19 +308,15 @@ trait HasBitinflowPaymentsWallet
|
||||
/**
|
||||
* Create a new order.
|
||||
*
|
||||
* @param array $name
|
||||
* @param array $order_items
|
||||
* @param array $attributes
|
||||
* @param array $payload optional data that is stored in the order
|
||||
* @param bool $checkout optional checkout it directly
|
||||
* @return object|false
|
||||
*/
|
||||
public function createOrder(string $name, array $attributes = [], array $payload = [], bool $checkout = false): object|false
|
||||
public function createOrder(array $order_items = [], array $attributes = [], bool $checkout = false): object|false
|
||||
{
|
||||
$defaults = ['amount' => 1];
|
||||
$attributes = array_merge(array_merge($defaults, $attributes), [
|
||||
'payload' => array_merge([
|
||||
'name' => $name,
|
||||
], $client),
|
||||
$attributes = array_merge($attributes, [
|
||||
'order_items' => $order_items,
|
||||
'checkout' => $checkout
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user