AsaadAbdo / laravel-cybersource by AsaadAbdo
forked from dandb/laravel-cybersource

163
0
2
Package Data
Maintainer Username: AsaadAbdo
Maintainer Contact: credibility@dandb.com (Credibility)
Package Create Date: 2017-08-09
Package Last Update: 2017-09-14
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2025-02-06 03:00:59
Package Statistics
Total Downloads: 163
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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();
}