https://github.com/camerodev/paypal-express-checkout
https://github.com/camerodev/paypal-express-checkout
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/camerodev/paypal-express-checkout
- Owner: camerodev
- Created: 2025-04-06T19:28:17.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-06T19:28:20.000Z (2 months ago)
- Last Synced: 2025-04-07T16:43:27.584Z (2 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
README
= PayPal Express Checkout easy integration.
== 1. Create object instance:
$paypal = new PaypalExpressCheckout($gateway);
== 2. Redirect user to PayPal to obtain charging permissions
$paypal->doExpressCheckout(123.45, 'Test service', 'inv123', 'USD', $resultData);
== 3. Perform payment, token and PayerID are being returned with GET response from PayPal
$paypal->doPayment($_GET['token'], $_GET['PayerID'], $resultData)
== 4. Perform refund based on transaction ID (returned from doPayment method)
$paypal->doRefund($transactionId, 'inv123', false, 0, 'USD', '', $resultData)
For more information see index.php file.
NOTE:
You need to have Express Checkout enabled on your live account