yabacon / paystack-php

A PHP Wrapper for Paystack API - https://www.paystack.com
MIT License
109 stars 70 forks source link

Fatal Error Uncaught InvalidArgumentException: Class "transaction" does not exist. in /storage/ssd4/502/13888502/public_html/vendor/yabacon/paystack-php/src/Paystack/Helpers/Router.php:69 #30

Closed markomeje closed 4 years ago

markomeje commented 4 years ago

Problem/Motivation

I'm getting this error on live server when trying to call the api for redirect user to payment page 0 /storage/ssd4/502/13888502/public_html/vendor/yabacon/paystack-php/src/Paystack.php(106): Yabacon\Paystack\Helpers\Router->__construct('transaction', Object(Yabacon\Paystack)) 1 /storage/ssd4/502/13888502/public_html/framework/Models/Subscriptions.php(61): Yabacon\Paystack->__get('transaction')

awijeet commented 4 years ago

I am also getting the same error message

sheanWinston commented 4 years ago

Any work around, am having the same issue here

sheanWinston commented 4 years ago

For my case, I used the 2.1.23 and the error disappeareed

awijeet commented 4 years ago

I fixed the issue by not using the latest version.

https://github.com/yabacon/paystack-php/releases

So instead of using "Version 2.2" I preferred "Version 2.1.22" and I could get it working