sdk-php icon indicating copy to clipboard operation
sdk-php copied to clipboard

Get Fatal error

Open LawanyaD opened this issue 10 years ago • 7 comments

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

LawanyaD avatar Aug 30 '16 06:08 LawanyaD

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.

ashtru avatar Aug 30 '16 08:08 ashtru

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

LawanyaD avatar Aug 31 '16 04:08 LawanyaD

There can be many reasons behind that error. Are you sure the JMS namespace is loaded in your application?

BBurton0 avatar Aug 31 '16 22:08 BBurton0

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 .

LawanyaD avatar Sep 01 '16 04:09 LawanyaD

For the first issue(Annotation\Type), please check if you have the following folder with some files and folders inside it: /vendor/jms/serializer/src/JMS/Serializer Or if this error is fixed, how did you fix 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 /vendor/phpunit/phpunit/phpunit.

ashtru avatar Sep 01 '16 06:09 ashtru

Ok , I fixed that isssue Now it displays an error as, Fatal error: Class 'goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found

LawanyaD avatar Sep 01 '16 06:09 LawanyaD

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.

chsriniv9 avatar Jul 16 '18 11:07 chsriniv9