Skip to content

Commit

Permalink
Fix empty payload (#260)
Browse files Browse the repository at this point in the history
* Fix empty payload

* wip

* wip
  • Loading branch information
driesvints authored May 22, 2024
1 parent 19061fa commit a0a2173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cashier.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ public static function webhookUrl()
*
* @param string $method
* @param string $uri
* @param array $payload
* @param array|null $payload
* @return \Illuminate\Http\Client\Response
*
* @throws \Laravel\Paddle\Exceptions\PaddleException
*/
public static function api($method, $uri, array $payload = [])
public static function api($method, $uri, ?array $payload = null)
{
if (empty($apiKey = config('cashier.api_key', config('cashier.auth_code')))) {
throw new Exception('Paddle API key not set.');
Expand Down

0 comments on commit a0a2173

Please sign in to comment.