Events
You can listen for the following events from the Laravel\Cashier\Events namespace:
BalanceTurnedStale event
Section titled “BalanceTurnedStale event”The user has a positive account balance, but no active subscriptions. Consider a refund.
CouponApplied event
Section titled “CouponApplied event”A coupon was applied to an OrderItem. Note the distinction between redeeming a coupon and applying a coupon. A redeemed coupon can be applied to multiple orders. I.e. applying a 6 month discount on a monthly subscription using a single (redeemed) coupon.
FirstPaymentFailed event
Section titled “FirstPaymentFailed event”The first payment (used for obtaining a mandate) has failed.
FirstPaymentPaid event
Section titled “FirstPaymentPaid event”The first payment (used for obtaining a mandate) was successful.
MandateClearedFromBillable event
Section titled “MandateClearedFromBillable event”The mollie_mandate_id was cleared on the billable model. This happens when a payment has failed because of a invalid
mandate.
MandateUpdated event
Section titled “MandateUpdated event”The billable model’s mandate was updated. This usually means a new payment card was registered.
OrderCreated event
Section titled “OrderCreated event”An Order was created.
OrderInvoiceAvailable event
Section titled “OrderInvoiceAvailable event”An Invoice is available on the Order. Access it using $event->order->invoice().
OrderPaymentFailed event
Section titled “OrderPaymentFailed event”The payment for an order has failed.
OrderPaymentFailedDueToInvalidMandate event
Section titled “OrderPaymentFailedDueToInvalidMandate event”The payment for an order has failed due to an invalid payment mandate. This happens for example when the customer’s credit card has expired.
OrderPaymentPaid event
Section titled “OrderPaymentPaid event”The payment for an order was successful.
OrderProcessed event
Section titled “OrderProcessed event”The order has been fully processed.
SubscriptionStarted event
Section titled “SubscriptionStarted event”A new subscription was started.
SubscriptionCancelled event
Section titled “SubscriptionCancelled event”The subscription was cancelled.
SubscriptionResumed event
Section titled “SubscriptionResumed event”The subscription was resumed.
SubscriptionPlanSwapped event
Section titled “SubscriptionPlanSwapped event”The subscription plan was swapped.
SubscriptionQuantityUpdated event
Section titled “SubscriptionQuantityUpdated event”The subscription quantity was updated.
ChargebackReceived event
Section titled “ChargebackReceived event”Chargeback was received.
RefundInitiated event
Section titled “RefundInitiated event”A refund was initiated.
RefundProcessed event
Section titled “RefundProcessed event”The refund was processed.
RefundFailed event
Section titled “RefundFailed event”The refund has failed.