1872 1861 1816 1595 1273 1645 1068 1989 1906 1216 1907 1512 1695 1916 1104 1809 1832 1926 1742 1198 1259 1703 1311 1938 1271 1482 1834 1693 1972 1884 1401 1217 1099 1428 1180 1017 1464 1939 1051 1085 1769 1558 1850 1824 1287 1039 1781 1628 1600 1188 1525 1430 1577 1408 1299 1049 1552 1427 1108 1670 1480 1902 1431 1120 1609 1745 1545 1039 1502 1402 1968 1361 1699 1719 1025 1087 1265 1737 1362 1065 1333 1797 1560 1061 1914 1978 1112 1652 1464 1556 1257 1757 1236 1650 1411 1340 1650 1271 1965 Cashier 8.0 Webhook Improvements | PHPnews.io

PHPnews.io

Cashier 8.0 Webhook Improvements

Written by Taylor Otwell / Original link on Oct. 29, 2018

Last week we tagged version 8.0.0 of Laravel Cashier. This release should not contain any breaking changes from the 7.0 series of Cashier; however, thanks to a community contribution, the release does add automatic support for more Stripe webhooks.

The following webhooks are now automatically handled by Cashier unless you override the corresponding webhook controller methods:

customer.updated

If the default card on the customer is changed in the Stripe dashboard, the customer information stored in your application’s database will automatically be updated.

customer.subscription.updated

If the plan, quantity, or trial ending date is updated on the Stripe dashboard, this information will automatically be updated in your application’s database.

customer.source.deleted

If the customer’s payment source is deleted in the Stripe dashboard, the source information will be set to NULL in your application’s database.

customer.deleted

If the customer is deleted from the Stripe dashboard, their subscriptions will be cancelled and their Stripe information will be removed from your database.

These changes augment Cashier’s automatic webhook handling with some great new features that make it even easier to build subscription billing systems with Laravel+ Stripe.

lornajane taylorotwell

« How I Work (October 2018 Edition) - Forge PHP Patch Upgrades »