Skip to content

Commit d867104

Browse files
authored
Update Subscription.php (#148)
Allow paymentMethod() to be empty string
1 parent cee6b4d commit d867104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Subscription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ public function paddleEmail()
704704
*/
705705
public function paymentMethod()
706706
{
707-
return (string) $this->paddleInfo()['payment_information']['payment_method'];
707+
return (string) ($this->paddleInfo()['payment_information']['payment_method'] ?? '');
708708
}
709709

710710
/**

0 commit comments

Comments
 (0)