承接 joni-jones/yii2-2checkout 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

joni-jones/yii2-2checkout

Composer 安装命令:

composer require joni-jones/yii2-2checkout

包简介

Yii2 extension for 2checkout library

README 文档

README

Extension provides access for 2Checkout library methods from Yii2 framework.

Latest Stable Version Total Downloads License

How to install?

Get it via composer by adding the package to your composer.json:

{
  "require": {
    "joni-jones/yii2-2checkout": "*"
  }
}

or run

php composer.phar require --prefer-dist joni-jones/yii2-2checkout "*"

Usage

Once the extension is installed, simply modify your application configuration as follows:

return [
    'components' => [
        'twocheckout' => [
            'class' => 'yii\twocheckout\TwoCheckout',
            'privateKey' => '',
            'sellerId' => '',
            'secretWord' => '', //by default is 'tango'
            'username' => '', //required to Admin API call
            'password' => '', //required to Admin API call
            'sandbox' => true, //by default false,
        ]
    ],
    // ...
];

The Charge class usage example (equal to Twocheckout_Charge::form()):

$product['currency_code'] = 'USD';
$product['mode'] = '2CO';
$product['li_0_price'] = '0.01';
$product['merchant_order_id'] = '1122312';
$product['li_0_name'] = 'Credit';
$product['li_0_quantity'] = '1';
$product['li_0_type'] = 'product';
$product['li_0_tangible'] = 'N';
$product['li_0_product_id'] = '43242342';
$product['sid'] = Yii::$app->twocheckout->sellerId;
$product['demo'] = Yii::$app->twocheckout->demo;
$product['key'] = md5($product['merchant_order_id'].$product['li_0_product_id']);
Yii::$app->twocheckout->charge->form($product);

Full documentation you can find on 2Checkout site.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-05-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固