Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Commit

Permalink
Update Invoices.php
Browse files Browse the repository at this point in the history
  • Loading branch information
webong authored Feb 27, 2020
1 parent 230543d commit 772c507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Invoices.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function create(array $parameters)
$response = $this->post(self::BASE_PATH, $parameters);

if ($response['status'] ?? null) {
$this->fire(PaystackEventType::INVOICE_CREATED, $response['data']);
$this->fire(PaystackEventType::INVOICE_CREATED, $response['data'] ?? null);
} else {
$this->fire(PaystackEventType::INVOICE_FAILED, $response['data'] ?? null);
}
Expand Down

0 comments on commit 772c507

Please sign in to comment.