Get Fatal error
I need to use refund functionality but it displays an error as,
Fatal error: Class 'SampleCode\Constants' not found in /opt/lampp/htdocs/authorize/PaymentTransactions/refund-transaction.php on line 76
When you are using the code from refund-transaction sample code , replace the sample-code-constants with your values, or the ones used in the sample code constants definition.
How to solve this issue, Fatal error: Class 'JMS\Serializer\Annotation\Type' not found in /opt/lampp/htdocs/authorize/PaymentTransactions/SensitiveDataConfigType.php on line 7
There can be many reasons behind that error. Are you sure the JMS namespace is loaded in your application?
Fatal error: Class 'PHPUnit_Framework_Assert' not found in /opt/lampp/lib/php/PHPUnit/Framework/TestCase.php on line 99
On Thu, Sep 1, 2016 at 3:32 AM, Brandon [email protected] wrote:
There can be many reasons behind that error. Are you sure the JMS namespace is loaded in your application?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AuthorizeNet/sdk-php/issues/178#issuecomment-243916786, or mute the thread https://github.com/notifications/unsubscribe-auth/AURt7xjZE46lh4fnR9SCJ7ifOgj5xt6Yks5qlfoSgaJpZM4JwM4w .
For the first issue(Annotation\Type), please check if you have the following folder with some files and folders inside it:
When are you getting the PHPUnit error? Are you trying to run a unit test not in the SDK?
In any case, you need to have PHPUnit installed, and it should be the same version as the one in
Ok , I fixed that isssue Now it displays an error as, Fatal error: Class 'goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found
Issues related to goetas repositories moving to goetas-webservices, have been resolved. Use the latest version of the PHP SDK.
Closing this issue, feel free to reopen in case of any queries.