Skip to content

Commit f6acdf4

Browse files
authored
Merge pull request #733 from sdebacker/patch-2
[10.0] Allow hasCompletePayment() to check other subscriptions than “default”.
2 parents 3071d5f + a97655e commit f6acdf4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Billable.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,12 @@ public function subscriptions()
200200
/**
201201
* Determine if the customer's subscription has an incomplete payment.
202202
*
203+
* @param string $subscription
203204
* @return bool
204205
*/
205-
public function hasIncompletePayment()
206+
public function hasIncompletePayment($subscription = 'default')
206207
{
207-
if ($subscription = $this->subscription()) {
208+
if ($subscription = $this->subscription($subscription)) {
208209
return $subscription->hasIncompletePayment();
209210
}
210211

0 commit comments

Comments
 (0)