https://github.com/deva7mad/laravel-cybersource
This package wraps the Cybersource Secure Acceptance & SOAP API in a convenient, easy to use package for Laravel.
https://github.com/deva7mad/laravel-cybersource
cybersource-payment-api laravel laravel-cybersource payment-integration visa
Last synced: 4 months ago
JSON representation
This package wraps the Cybersource Secure Acceptance & SOAP API in a convenient, easy to use package for Laravel.
- Host: GitHub
- URL: https://github.com/deva7mad/laravel-cybersource
- Owner: deva7mad
- License: mit
- Created: 2018-05-12T15:19:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T12:43:54.000Z (about 2 years ago)
- Last Synced: 2024-08-09T06:37:17.179Z (almost 2 years ago)
- Topics: cybersource-payment-api, laravel, laravel-cybersource, payment-integration, visa
- Language: JavaScript
- Homepage: https://deva7mad.github.io/laravel-cybersource/
- Size: 138 KB
- Stars: 12
- Watchers: 4
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Cybersource SOAP & Secure Acceptance
This package wraps the Cybersource Secure Acceptance & SOAP API in a convenient, easy to use package for Laravel.
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
## Installation
```
composer require a17mad/laravel-cybersource
```
### If you use laravel < 5.5 you must add this to config\app.php
```
Providers Array
JustGeeky\LaravelCybersource\Providers\LaravelCybersourceServiceProvider::class
Facade Array
"Cybersource" => JustGeeky\LaravelCybersource\Facades\Cybersource::class
```
## Publishing Configuration
```
php artisan vendor:publish --tag=cybersource
```
### Usage Of Secure Acceptance Form
Add your Cybersource Profile Credentials
* config\cybersource-profiles.php
```
- cd into your app
- php artisan serve
- Visit (http://127.0.0.1:8000/cybersource/payment/form)
```
### Usage SOAP
Example usage using Facade:
* Create New Subscription (Receive Cybersource Profile Token)
```
$response = Cybersource::createSubscription(
$paymentToken,
$productId,
$productTotal,
$frequency
);
if($response->isValid()) {
$responseDetails = $response->getDetails();
echo $responseDetails['paySubscriptionCreateReply']['subscriptionID'];
} else {
echo $response->error();
}
```
Get The Current Subscription Details:
```
$response = Cybersource::getSubscriptionStatus(
$subscriptionID
);
if($response->isValid()) {
$responseDetails = $response->getDetails();
echo $responseDetails['message'];
} else {
echo $response->error();
}
```
## Author
* **Ahmad Elkenany** - *Development* - [Linkedin](https://www.linkedin.com/in/ahmad-elkenany/)
## License
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/a17mad/laravel-cybersource/blob/master/LICENSE) file for details
## Acknowledgments
- For Secure Acceptance Web / Mobile Check Out CyberSource DOCS at [W/M](https://www.cybersource.com/developers/getting_started/integration_methods/secure_acceptance_wm/)
- For Secure Acceptance Silent Order POST Check Out CyberSource DOCS at [SOP](https://www.cybersource.com/developers/getting_started/integration_methods/secure_acceptance_sop/)
- For SOAP Toolkit API Check Out CyberSource DOCS at [SOAP](https://www.cybersource.com/developers/getting_started/integration_methods/soap_toolkit_api/)
## Support on Beerpay
Hey dude! Help me out for a couple of :beers:!
[](https://beerpay.io/deva7mad/laravel-cybersource) [](https://beerpay.io/deva7mad/laravel-cybersource?focus=wish)