Download the PHP package avto-dev/cloud-payments-laravel without Composer

On this page you can find all versions of the php package avto-dev/cloud-payments-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cloud-payments-laravel

logo

Cloud Payments PHP-client

Version PHP Version Build Status Coverage Downloads count License

The package provides easy way to use Cloud Payments API.

Install

Require this package with composer using the following command:

Installed composer is required (how to install composer).

Configuration

You can find laravel framework integration here

For client configuration use Config instance. Client constructor requires Public ID and API Secret that you can find in ClodPayments personal area.

Usage

Select one of requset builders:

Set all necessary parameters through the setters:

Get PSR7 request:

Set up client, and send the request:

Api client

Constructing

Constructor requires any GuzzleHttp\ClientInterface instance and Config instance

Sending

This method allows to send any Psr\Http\Message\RequestInterface and returns only Psr\Http\Message\ResponseInterface, that allow you to build own requests as you want or use one of provided requests builders.

This client does only one thing: authorizes requests for CloudPayments and sends them.

Request builders

Supported builders:

Builder Description Documentation link
TestRequestBuilder The method to test the interaction with the API Link
CardsAuthRequestBuilder The method to make a payment by a cryptogram Link
CardsChargeRequestBuilder The method to make a payment by a cryptogram. Charge only Link
CardsPost3DsRequestBuilder 3-D Secure Processing Link
TokensAuthRequestBuilder The method to make a payment by a token Link
TokensChargeRequestBuilder The method to make a payment by a token. Charge only Link
PaymentsConfirmRequestBuilder Payment Confirmation Link
PaymentsVoidRequestBuilder Payment Cancellation Link
SubscriptionsCreateRequestBuilder Creation of Subscriptions on Recurrent Payments Link
SubscriptionsGetRequestBuilder Subscription Details Link
SubscriptionsFindRequestBuilder Subscriptions Search Link
SubscriptionsUpdateRequestBuilder Recurrent Payments Subscription Change Link
SubscriptionsCancelRequestBuilder Subscription on Recurrent Payments Cancellation Link

How to get card cryptogram packet?

Idempotency

Idempotency is an ability of API to produce the same result as the first one without re-processing in case of repeated requests. That means you can send several requests to the system with the same identifier, and only one request will be processed. All the responses will be identical. Thus the protection against network errors is implemented which can lead to creation of duplicate records and actions.

To enable idempotency, it is necessary to call setRequestId('request_id') method with a unique identifier in API request. Generation of request identifier remains on your side - it can be a guid, a combination of an order number, date and amount, or other values of your choice. Each new request that needs to be processed must include new request_id value. The processed result is stored in the system for 1 hour.

Frameworks integration

Laravel

Laravel 5.5 and above uses Package Auto-Discovery, so doesn't require you to manually register the service-provider. Otherwise you must add the service provider to the providers array in ./config/app.php:

Laravel configuration

Service provider pick configuration from services.cloud_payments config. So you need to put it into config/services.php file. For example:

Testing

For package testing we use phpunit framework. Just write into your terminal:

Changes log

Release date Commits since latest release

Changes log can be found here.

Support

Issues Issues

If you will find any package errors, please, make an issue in current repository.

License

This is open-sourced software licensed under the MIT License.


All versions of cloud-payments-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
guzzlehttp/guzzle Version ~7.5
guzzlehttp/psr7 Version ^2.6.2
psr/http-client Version ~1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package avto-dev/cloud-payments-laravel contains the following files

Loading the files please wait ....