globalpayments / php-sdk

GNU General Public License v2.0
49 stars 66 forks source link

I cannot use PHP-sdk #52

Closed Marvin261 closed 4 years ago

Marvin261 commented 4 years ago

Hello. I am Marvin. I am a website developer. I am interested to try globalpayments hpp payments. But I am having trouble finding the php-sdk file "autoload.php" or "init.php". I am directly downloaded php sdk file.

Please help me as soon as possible so that I can continue my work.

Regards, Marvin.

Marvin261 commented 4 years ago

For now I manually use php require to load php file like this:

`<?php /* GlobalPayments PHP-SDK-2.0.5 Initialize Charge Payment directory file /

require(dirname(FILE) . '/src/Entities/Exceptions/ApiException.php'); require(dirname(FILE) . '/src/Entities/Exceptions/ArgumentException.php');

require(dirname(FILE) . '/src/ServicesConfig.php'); require(dirname(FILE) . '/src/Entities/Enum.php'); require(dirname(FILE) . '/src/Entities/Enums/Environment.php');

require(dirname(FILE) . '/src/ServicesContainer.php'); require(dirname(FILE) . '/src/Entities/Enums/TransactionType.php'); require(dirname(FILE) . '/src/Entities/Enums/TransactionModifier.php'); require(dirname(FILE) . '/src/Builders/BaseBuilder/ValidationClause.php'); require(dirname(FILE) . '/src/Builders/BaseBuilder/ValidationTarget.php'); require(dirname(FILE) . '/src/Builders/BaseBuilder/Validations.php'); require(dirname(FILE) . '/src/Builders/BaseBuilder.php'); require(dirname(FILE) . '/src/Builders/TransactionBuilder.php'); require(dirname(FILE) . '/src/Builders/ManagementBuilder.php'); require(dirname(FILE) . '/src/Entities/Transaction.php'); require(dirname(FILE) . '/src/Entities/Enums/PaymentMethodType.php'); require(dirname(FILE) . '/src/PaymentMethods/Interfaces/IPaymentMethod.php'); require(dirname(FILE) . '/src/PaymentMethods/TransactionReference.php'); require(dirname(FILE) . '/src/Utils/GenerationUtils.php'); require(dirname(FILE) . '/src/Services/HostedService.php');

require(dirname(FILE) . '/src/Entities/Enums/Secure3dVersion.php'); require(dirname(FILE) . '/src/Gateways/IRecurringService.php'); require(dirname(FILE) . '/src/Gateways/ISecure3dProvider.php'); require(dirname(FILE) . '/src/Gateways/IPaymentGateway.php'); require(dirname(FILE) . '/src/Gateways/GatewayResponse.php'); require(dirname(FILE) . '/src/Gateways/Gateway.php'); require(dirname(FILE) . '/src/Gateways/XmlGateway.php'); require(dirname(FILE) . '/src/Entities/Exceptions/GatewayException.php'); require(dirname(FILE) . '/src/Gateways/RealexConnector.php'); ?>`

MSmedal commented 4 years ago

Hi again Marvin, Composer is definitely the easiest way to get going with our PHP SDK since it handles the PSR-4 Autoloader requirements of our SDK.

Marvin261 commented 4 years ago

Thanks for information. I do not use composer. I will close this thread now.