Skip to content

Commit

Permalink
Merge pull request #13 from mwarzybok-sumoheavy/feature/SP-600
Browse files Browse the repository at this point in the history
SP-600 Test EDD Improvements
  • Loading branch information
p-maguire authored Aug 9, 2023
2 parents ad68a35 + 8ebb998 commit 87fb193
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BitPayEddLib/class-bitpayinvoicefactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private function get_notification_url(): string {
}

private function get_buyer(): Buyer {
if ( $this->get_edd_option( 'bitpay_checkout_capture_email' ) !== 1 ) {
if ( ! $this->get_edd_option( 'bitpay_checkout_capture_email' ) ) {
return new Buyer();
}

Expand All @@ -51,9 +51,9 @@ private function get_buyer(): Buyer {
return $buyer_info;
}

private function get_edd_option( string $option_name ): string {
private function get_edd_option( string $option_name ): ?string {
global $edd_options;

return $edd_options[ $option_name ];
return $edd_options[ $option_name ] ?? null;
}
}

0 comments on commit 87fb193

Please sign in to comment.