laravel / cashier-mollie

MIT License
375 stars 63 forks source link

Plan Swap not working with error Call to a member function handle() on null #228

Closed siprasaloni closed 4 years ago

siprasaloni commented 4 years ago

when i swap the plan i got error Call to a member function handle() on null (vendor/laravel/cashier-mollie/src/Subscription.php:446)

return $subscription->plan()->orderItemPreprocessors()->handle($item);

but swapNextCycle() working perfectly.

can you please let me know what is the cause. i am using laravel 6

sandervanhooft commented 4 years ago

Seems like the orderItemPreprocessors() call is returning null. Are you perhaps using a customized Plan/Planrepository?

siprasaloni commented 4 years ago

hey you are right! i have fixed this. thank you for your time.