You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prefer active subscriptions in Pay::Customer#subscription (#1249)
Pay::Customer#subscription returned the most recently created
subscription regardless of status, so a customer with an older active
subscription and a newer canceled one would get the canceled one back.
Now prefer an active or paused subscription for the name, falling back
to the most recently created subscription when none are active.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
### Unreleased
4
4
5
+
*`Pay::Customer#subscription` now prefers an active or paused subscription over a newer canceled one, falling back to the most recently created subscription when none are active
6
+
5
7
### 11.7.1
6
8
7
9
* Preserve existing Stripe api key if already set when Pay initializes #1248
0 commit comments