laravel / cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.
https://laravel.com/docs/cashier-paddle
MIT License
245 stars 57 forks source link

Cancellation subscription - Call to a member function date() on null #37

Closed Hussam3bd closed 4 years ago

Hussam3bd commented 4 years ago

Description:

This error happened when I cancel a subscription

$subscription->cancel();

https://share.getcloudapp.com/eDu1Z0yK

This error happened only if the subsection status still active, and it will be active until Paddle's webhook sent the response to the server and being handled.

GrahamCampbell commented 4 years ago

I guess the question is do we want to know an exception saying already cancelled, or do we want to do nothing. The same applies for the other functions.

driesvints commented 4 years ago

Pushed a fix for this.