定制 pkg6/paypal 二次开发

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

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

pkg6/paypal

最新稳定版本:v0.0.1

Composer 安装命令:

composer require pkg6/paypal

包简介

php client for PayPal SDK

README 文档

README

composer require pkg6/paypal

Using the Documentation

$config = [
    // Can only be 'sandbox' Or 'live'. If empty or invalid, 'live' will be used.
    'mode'           => 'live',
    'client_id'      => 'some-client-id',
    'client_secret'  => 'some-client-secret',
    'app_id'         => 'APP-80W284485P519543T',
     // Can only be 'Sale', 'Authorization' or 'Order'
    'payment_action' => 'Sale',
    'currency'       => 'USD',
     // Change this accordingly for your application.
    'notify_url'     => 'https://your-app.com/paypal/notify',
    // force gateway language  i.e. it_IT, es_ES, en_US ... (for express checkout only)
    'locale'         => 'en_US',
    // Validate SSL when creating api client.
    'validate_ssl'   => true,
];
$rest = new \pkg6\paypal\RestClient($config);
//Get Access Token
$rest->getAccessToken();

For more instructions, see the documentation:

https://github.com/pkg6/paypal-php/wiki/PayPal-REST-APIs

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-06