nyehandel / omnipay-paypal
Omnipay 对 PayPal checkout v2 api 的支持
1.1.0
2022-05-11 20:02 UTC
Requires
- omnipay/common: ^3
- omnipay/paypal: ^3.0
Requires (Dev)
- omnipay/tests: ^3
- phpro/grumphp: ^0.14
- squizlabs/php_codesniffer: ^3
This package is auto-updated.
Last update: 2024-09-12 01:21:40 UTC
README
Omnipay 是一个与框架无关的多网关支付处理库,适用于 PHP。本包实现了 Omnipay 对 PayPal 的支持。
安装
通过 Composer 安装 Omnipay。要安装,只需使用 Composer 需求 league/omnipay 和 omnipay/paypal。
composer require league/omnipay nyehandel/omnipay-paypal
基本用法 本包提供以下网关
加载网关
Omnipay::create("\Nyehandel\Omnipay\Paypal\RestGateway");
除了上述之外,您还可以获得 omnipay/paypal 网关
- PayPal_Express (PayPal Express Checkout)
- PayPal_ExpressInContext (PayPal Express In-Context Checkout)
- PayPal_Pro (PayPal Website Payments Pro)
- PayPal_Rest (Paypal Rest API)
有关通用使用说明,请参阅 Omnipay 的主仓库。