From 102b327eaedd4d77dc9e395c763caeee19ac6ba1 Mon Sep 17 00:00:00 2001 From: Artur Gauzer Date: Fri, 27 Oct 2023 22:40:49 +0600 Subject: [PATCH] Fix createInvoice --- src/Coinbase.php | 4 ++-- src/Facades/Coinbase.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Coinbase.php b/src/Coinbase.php index 445fccf..bbc8473 100755 --- a/src/Coinbase.php +++ b/src/Coinbase.php @@ -175,9 +175,9 @@ public function getInvoices(): array * @param array $params * @return array */ - public function createInvoice(array $params = []): array + public function createInvoice(array $params): array { - return $this->makeRequest('post', 'invoices', $params); + return $this->makeRequest('post', 'invoices', [], $params); } /** diff --git a/src/Facades/Coinbase.php b/src/Facades/Coinbase.php index c7e2c19..9d4433f 100755 --- a/src/Facades/Coinbase.php +++ b/src/Facades/Coinbase.php @@ -16,7 +16,7 @@ * @method static array updateCheckout(string $checkoutId, array $params = []) Updates an existing checkout. * @method static array deleteCheckout(string $checkoutId) Deletes an existing checkout. * @method static array getInvoices() Lists all invoices. - * @method static array createInvoice(array $params = []) Creates a new invoice. + * @method static array createInvoice(array $params) Creates a new invoice. * @method static array getInvoice(string $invoiceId) Retrieves an existing invoice by supplying its id or 8 character short-code. * @method static array voidInvoice(string $invoiceId) Voids an existing invoice by supplying its id or 8 character short-code. * @method static array resolveInvoice(string $invoiceId) Resolves an existing, unresolved invoice by supplying its id or 8 character short-code.