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
Copy file name to clipboardExpand all lines: UPGRADE.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,22 @@
2
2
3
3
Follow this guide to upgrade older Pay versions. These may require database migrations and code changes.
4
4
5
+
## Pay 11
6
+
7
+
Associations on Pay models have been renamed to use the `pay_` prefix.
8
+
9
+
```ruby
10
+
# old
11
+
@user.charges
12
+
# new
13
+
@user.pay_charges
14
+
15
+
# old
16
+
@user.subscriptions
17
+
# new
18
+
@user.pay_subscriptions
19
+
```
20
+
5
21
## Pay 10.1
6
22
7
23
Pay now uses the Stripe `charge.updated` webhook to save Charge balance transactions. Make sure you're sending this webhook to keep these records up-to-date.
0 commit comments