定制 chilloutalready/paypal 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

chilloutalready/paypal

Composer 安装命令:

composer require chilloutalready/paypal

包简介

PayPal SDK for ExpressCheckout and AdaptivePayments. Supports recurring payments, simple payments, parallel payments and chained payments.

README 文档

README

PayPal SDK for ExpressCheckout and Adaptive Payments.

Build Status Scrutinizer Quality Score Code Coverage Latest Stable Version

Features:

  • recurring payments
  • simple payments
  • parallel payments
  • chained payments

Installation

You could use this library in your project by running:

php composer.phar install

Learn more about Composer.

Usage

Here is a simple usage example performing a payment with ExpressCheckout:

// Get a Payment instance using the ExpressCheckout driver
$payment = OpenBuildings\PayPal\Payment::instance('ExpressCheckout');

// Set the order
$payment->order(array(
    'items_price' => 10,
    'shipping_price' => 3,
    'total_price' => 13
));

// Set additional params needed for ExpressCheckout
$payment->return_url('example.com/success');
$payment->cancel_url('example.com/success');

// Send a SetExpressCheckout API call
$response = $payment->set_express_checkout();

// Finish the payment with the token and the payer id received.
$payment->do_express_checkout_payment($response['TOKEN'], $response['PAYERID']);

Documentation

Contributing

Read the Contribution guidelines.

License

Licensed under BSD-3-Clause open-source license.

License file

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-08-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固