Registry / http-client / omnipay-paypal

omnipay-paypal

JSON →
library3.0.2phppackagistunverified

PayPal gateway for Omnipay payment processing library.

composer require omnipay/paypal
INSTALL
IMPORT
SIG · OMNIPAY-PAYPAL
O
omnipay-paypal
http-clientphpv3.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ExpressGateway
use Omnipay\PayPal\ExpressGateway;

Create a PayPal Express Checkout gateway and initiate a purchase.

use Omnipay\PayPal\ExpressGateway; $gateway = new ExpressGateway(); $gateway->setUsername('your-username'); $gateway->setPassword('your-password'); $gateway->setSignature('your-signature'); $gateway->setTestMode(true); $response = $gateway->purchase([ 'amount' => '10.00', 'currency' => 'USD', 'returnUrl' => 'https://example.com/success', 'cancelUrl' => 'https://example.com/cancel', ])->send();
Debug
Known issues
breakingPayPal API version differences: v3.0 uses REST API, older versions use NVP/SOAP.
fix
Check the gateway class (ExpressGateway vs RestGateway) and credentials accordingly.
affects: >=3.0.0
Upgrade
Version history
3.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
omnipay-paypal — pip install omnipay-paypal · libregistry