Open Lefagana opened 2 years ago
Hi! follow this link for the solution https://github.com/yabacon/paystack-php/blob/master/src/Paystack/Helpers/Router.php
change this private function getRouteClass($paystackObj) to the one in your Router.php helper class..
That suggests all that's needed is a new stable release of the library?
Fatal error: Uncaught TypeError: get_class_methods(): Argument #1 ($object_or_class) must be an object or a valid class name, null given in C:\greco\htdocs\paystack\vendor\yabacon\paystack-php\src\Paystack\Helpers\Router.php:67 Stack trace: #0 C:\greco\htdocs\paystack\vendor\yabacon\paystack-php\src\Paystack\Helpers\Router.php(67): get_class_methods(NULL) #1 C:\greco\htdocs\paystack\vendor\yabacon\paystack-php\src\Paystack.php(106): Yabacon\Paystack\Helpers\Router->construct('transaction', Object(Yabacon\Paystack)) #2 C:\greco\htdocs\paystack\index.php(13): Yabacon\Paystack->get('transaction') #3 {main} thrown in C:\greco\htdocs\paystack\vendor\yabacon\paystack-php\src\Paystack\Helpers\Router.php on line 67