a17mad/laravel-cybersource 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

a17mad/laravel-cybersource

最新稳定版本:1.2

Composer 安装命令:

composer require a17mad/laravel-cybersource

包简介

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

README 文档

README

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

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • For Secure Acceptance Web / Mobile Check Out CyberSource DOCS at W/M

  • For Secure Acceptance Silent Order POST Check Out CyberSource DOCS at SOP

  • For SOAP Toolkit API Check Out CyberSource DOCS at SOAP

Support on Beerpay

Hey dude! Help me out for a couple of 🍻!

Beerpay Beerpay

统计信息

  • 总下载量: 6.66k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 3
  • Forks: 7
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-12