dinkbit / conekta-cashier

Laravel + Conekta = Painless subscription billing. http://laravel.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP Error Call to undefined method: $user->subscription()->canceled()

alfonsofernandezyf opened this issue · comments

I get a call to undefined method error when using the $user->subscription()->canceled() method.

PHP Error: Call to undefined method Dinkbit\ConektaCashier\ConektaGateway::canceled() on line 1

I believe de method name is cancel
If you want to check if the user is subscribed (the account is not cancelled) you should use the method subscribed

  $user->subscription()->cancel();
  $user->subscribed(); // false

I wanted to tell if a custumer had been subscribed and then cancelled.
The method $user->cancelled() works fine.

Thank you.