| @@ -41,10 +41,11 @@ | ||
| 41 | 41 | |
| 42 | 42 | public function beforeDispatch() |
| 43 | 43 | { |
| 44 | 44 | $result = $this->subscription->cancelRemoteSubscription([ |
| 45 | - 'reason' => 'end_of_term', | |
| 46 | - 'fire_hooks' => false | |
| 45 | + 'reason' => 'end_of_term', | |
| 46 | + 'fire_hooks' => false, | |
| 47 | + 'effective_from' => 'immediately', | |
| 47 | 48 | ]); |
| 48 | 49 | |
| 49 | 50 | if (is_wp_error($result)) { |
| 50 | 51 | fluent_cart_add_log( |