Skip to content

Commit

Permalink
Fix createInvoice
Browse files Browse the repository at this point in the history
  • Loading branch information
antimech committed Oct 27, 2023
1 parent 6028f58 commit 102b327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Coinbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/Coinbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 102b327

Please sign in to comment.