Skip to content

Commit

Permalink
Update Subscription.php (#148)
Browse files Browse the repository at this point in the history
Allow paymentMethod() to be empty string
  • Loading branch information
BKirev authored Nov 25, 2021
1 parent cee6b4d commit d867104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ public function paddleEmail()
*/
public function paymentMethod()
{
return (string) $this->paddleInfo()['payment_information']['payment_method'];
return (string) ($this->paddleInfo()['payment_information']['payment_method'] ?? '');
}

/**
Expand Down

0 comments on commit d867104

Please sign in to comment.