asaadabdo/laravel-cybersource

163
Install
composer require asaadabdo/laravel-cybersource
Latest Version:v4.0.5
PHP:>=5.5.9
Laravel:5
License:MIT
Last Updated:Sep 14, 2017
Links: GitHub  ·  Packagist
Maintainer: AsaadAbdo

laravel-cybersource

Build Status Coverage Status Packagist

This package wraps the Cybersource SOAP API in a convenient, easy to use package for Laravel.

Installation

Install using composer:

"require": {
  "asaadabdo/laravel-cybersource": "4.0.*" 
}

See Packagist for latest version

Then, in config/app.php, add the following to the service providers array.

array(
   ...
  'Credibility\LaravelCybersource\Providers\LaravelCybersourceServiceProvider',
)

Finally, in config/app.php, add the following to the facades array.

array(
    ...
    'Cybersource'     => 'Credibility\LaravelCybersource\Facades\Cybersource',
)

Usage

Example usage using Facade:

$response = Cybersource::createSubscription(
    $paymentToken,
    $productId,
    $productTotal,
    $frequency
);

if($response->isValid()) {
    $responseDetails = $response->getDetails();
    echo $responseDetails['paySubscriptionCreateReply']['subscriptionID'];
} else {
    echo $response->error();
}

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
v4.0.5 >=5.5.9 5.5.* MIT
v4.0.4 >=5.5.9 5.4.* MIT
v4.0.3 >=5.5.9 5.4.* MIT
v4.0.2 >=5.5.9 5.4.* MIT
v4.0.1 >=5.5.9 5.4.* MIT