asaadabdo/laravel-cybersource
laravel-cybersource
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/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 | |
| v4.0.0 | >=5.5.9 | 5.4.* | MIT | |
| v3.0.11 | >=5.5.9 | 5.1.* | MIT | |
| v3.0.10 | >=5.5.9 | 5.1.* | MIT | |
| v3.0.9 | >=5.5.9 | 5.1.* | MIT | |
| v3.0.8 | >=5.5.9 | 5.1.* | MIT | |
| v3.0.7 | >=5.5.9 | 5.1.* | MIT | |
| v3.0.6 | >=5.5.9 | 5.1.* | MIT | |
| v3.0.5 | >=5.5.9 | 5.1.* | MIT | |
| v3.0.4 | >=5.5.9 | 5.1.* | MIT | |
| v3.0.3 | >=5.5.9 | 5.1.* | MIT | |
| v3.0.2 | >=5.4.9 | 5.1.* | MIT | |
| v3.0.1 | >=5.5.9 | 5.1.* | MIT | |
| v3.0.0 | >=5.5.9 | 5.1.* | MIT | |
| v2.0.0 | >=5.4.0 | 4.2.* | MIT | |
| v1.0.0 | >=5.4.0 | 4.1.* | MIT |
