Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run example code #110

Open
trueandperfect opened this issue Sep 28, 2022 · 1 comment
Open

Unable to run example code #110

trueandperfect opened this issue Sep 28, 2022 · 1 comment

Comments

@trueandperfect
Copy link

Fatal error: Uncaught Error: Class "GlobalPayments\Api\ServiceConfigs\Gateways\GpApiConfig" not found in /workspace/GenerateToken.php:19 Stack trace: #0 /workspace/GenerateToken.php(32): GenerateToken->__construct() #1 /workspace/index.php(8): GenerateToken::getInstance() #2 {main} thrown in /workspace/GenerateToken.php on line 19

I have deployed the sample code gp-api. Not sure what I am missing here.

@trueandperfect
Copy link
Author

Now I am getting the following error:
File not found.

/*
 * Document details
 * 
 * var GlobalPayments\Api\Entities\PayFac\UploadDocumentData
 */
public function withUploadDocumentData($uploadDocumentData)
{
    //file validations
    if (!file_exists($uploadDocumentData->documentLocation)) {
        throw new BuilderException('File not found!');
    } elseif (filesize($uploadDocumentData->documentLocation) > 5000000) {
        throw new BuilderException('Max file size 5MB exceeded');
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant