Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pkg6/paypal-php
PHP client for PayPal SDK
https://github.com/pkg6/paypal-php
Last synced: 7 days ago
JSON representation
PHP client for PayPal SDK
- Host: GitHub
- URL: https://github.com/pkg6/paypal-php
- Owner: pkg6
- License: mit
- Created: 2024-06-06T02:54:45.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-23T07:16:15.000Z (about 2 months ago)
- Last Synced: 2024-10-04T15:06:03.897Z (about 1 month ago)
- Language: PHP
- Homepage: https://packagist.org/packages/pkg6/paypal
- Size: 41 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Installation
```
composer require pkg6/paypal
```# Using the Documentation
- ## [RestClient](https://github.com/pkg6/paypal-php/wiki/PayPal-REST-APIs)
~~~
$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