Download the PHP package korobovn/cloud-payments without Composer

On this page you can find all versions of the php package korobovn/cloud-payments. 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

Cloud Payments PHP-client

Version Version Build Status Coverage Code quality Downloads count License

The package for easy use Cloud Payments API.

Install

Require this package with composer using the following command:

Installed composer is required (how to install composer).

Frameworks integration

Laravel 5

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:

Usage

How to get a client instance

If using Laravel framework, then you can get an instance of ClientInterface using make method to resolve.

You can send a request using the send method:

Where $request is an instance of RequestInterface.

You can also call the send method on the RequestInterface instance. Before that, you must call the setClient method on the RequestInterface with ClientInterface

You can choose the way you like.

How to create a request

List of available requests:

Cryptogram payment

Cryptogram payment docs here.

CryptogramPaymentOneStepRequest - for one-step payment;

CryptogramPaymentTwoStepRequest - for two-step payment.

Creating and sending a request:

Before calling the send method to send a request, we must fill out the request data model. To do that, call the getModel method on RequestInterface and use setters to set values. Use autocomplete of your IDE for to access setters.

The $response must be an instance of one of the classes: InvalidRequestResponse, Cryptogram3dSecureAuthRequiredResponse, CryptogramTransactionRejectedResponse, CryptogramTransactionAcceptedResponse

The $response (an instance of ResponseInterface) also has its own data model. Use the getModel method and getters to access the data.

Checking the type of response and accessing the response data model fields:

3-D Secure Processing

3-D Secure Processing docs here.

CompletionOf3dSecureRequest - for to complete the 3-D Secure payment.

Possible answers: InvalidRequestResponse, Cryptogram3dSecureAuthRequiredResponse, CryptogramTransactionRejectedResponse, CryptogramTransactionAcceptedResponse

Token Payment

Token Payment docs here.

TokenPaymentOneStepRequest - for one-step payment; TokenPaymentTwoStepRequest - for two-step payment.

Possible answers: InvalidRequestResponse, CryptogramTransactionRejectedResponse, CryptogramTransactionAcceptedResponse

Cancel payment

Cancel payment docs here.

CancelPaymentRequest - сancel payment for two-step payment request

Possible answers: InvalidRequestResponse, SuccessResponse

Refund payment

Refund payment docs here.

RefundPaymentRequest - refund for payment made

Possible answers: InvalidRequestResponse, RefundPaymentResponse

Create a recurring payment subscription

Create a recurring payment subscription docs here.

CreateSubscriptionRequest - creating a subscription for payments that will be made in the future

Possible answers: InvalidRequestResponse, SubscriptionResponse

Request Subscription Information

Request Subscription Information docs here.

GetSubscriptionRequest

Possible answers: InvalidRequestResponse, SubscriptionResponse

Search Subscriptions

Search Subscriptions docs here.

FindSubscriptionRequest

Possible answers: InvalidRequestResponse, SubscriptionsResponse

Change subscription

Change subscription docs here.

UpdateSubscriptionRequest

Possible answers: InvalidRequestResponse, SubscriptionResponse

Cancel subscription

Cancel subscription docs here.

CancelSubscriptionRequest

Possible answers: InvalidRequestResponse, SuccessResponse

Usage example without Laravel framework:

How to get CARD_CRYPTOGRAM_PACKET?

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 with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
ext-json Version *
illuminate/support Version ^5.5 || ^6.0
psr/http-client Version ~1.0
guzzlehttp/guzzle Version ~6.0
tarampampam/wrappers-php Version ^1.2
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 korobovn/cloud-payments contains the following files

Loading the files please wait ....