paypal/sdk-core-php
最新稳定版本:3.4.0
Composer 安装命令:
composer require paypal/sdk-core-php
包简介
PayPal Core SDK for PHP
README 文档
README
PayPal Core SDK
Please Note
The Payment Card Industry (PCI) Council has mandated that early versions of TLS be retired from service. All organizations that handle credit card information are required to comply with this standard. As part of this obligation, PayPal is updating its services to require TLS 1.2 for all HTTPS connections. At this time, PayPal will also require HTTP/1.1 for all connections. Click here for more information
A new
modehas been created to test if your server/machine handles TLSv1.2 connections. Please usetlsmode instead ofsandboxto verify. You can return back tosandboxmode once you have verified.
Support
Please contact PayPal Technical Support for any live or account issues.
Prerequisites
- PHP 5.3 and above
- curl extension with support for OpenSSL
- PHPUnit 3.5 for running test suite (Optional)
- Composer
Configuration
OpenID Connect Integration
- Redirect your buyer to
PPOpenIdSession::getAuthorizationUrl($redirectUri, array('openid', 'address'));to obtain authorization. The second argument is the list of access privileges that you want from the buyer. - Capture the authorization code that is available as a query parameter (
code) in the redirect url - Exchange the authorization code for a access token, refresh token, id token combo
$token = PPOpenIdTokeninfo::createFromAuthorizationCode( array( 'code' => $authCode ) );
- The access token is valid for a predefined duration and can be used for seamless XO or for retrieving user information
$user = PPOpenIdUserinfo::getUserinfo( array( 'access_token' => $token->getAccessToken() ) );
- If the access token has expired, you can obtain a new access token using the refresh token from the 3'rd step.
$token->createFromRefreshToken(array('openid', 'address'));
- Redirect your buyer to
PPOpenIdSession::getLogoutUrl($redirectUri, $idToken);to log him out of paypal.
LICENSE and CONTRIBUTIONS
- Please read LICENSE and CONTRIBUTING for more information.
paypal/sdk-core-php 适用场景与选型建议
paypal/sdk-core-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.6M 次下载、GitHub Stars 达 91, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「sdk」 「paypal」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 paypal/sdk-core-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 paypal/sdk-core-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 paypal/sdk-core-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PayPal SDK for ExpressCheckout and AdaptivePayments. Supports recurring payments, simple payments, parallel payments and chained payments.
A PayPal IPN (Instant Payment Notification) listener for PHP
Librería para la gestión sencilla de pagos mediante TPV Redsys y Paypal
Rich payment solutions for Laravel framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
Package set to provide shop or e-commerce functionality (such as CART, ORDERS, TRANSACTIONS and ITEMS) to Laravel for customizable builds.
Alfabank REST API integration
统计信息
- 总下载量: 5.6M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 100
- 点击次数: 10
- 依赖项目数: 10
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 未知