diff --git a/src/Paystack/Helpers/Router.php b/src/Paystack/Helpers/Router.php index 7fd2415..df9da22 100644 --- a/src/Paystack/Helpers/Router.php +++ b/src/Paystack/Helpers/Router.php @@ -85,7 +85,7 @@ public function __construct($route, $paystackObj) $caller = new Caller($paystackObj); return $caller->callEndpoint($interface, $params, $sentargs); }; - $this->methods[$mtd] = \Closure::bind($mtdFunc, $this, get_class()); + $this->methods[$mtd] = \Closure::bind($mtdFunc, $this, get_class($this)); } }