Open Journal Systems
3.3.0
|
Protected Member Functions | |
getEndpoint () | |
getEndpoint () | |
![]() | |
createResponse ($data, $statusCode) | |
createResponse ($data, $statusCode) | |
getHttpMethod () | |
getHttpMethod () | |
![]() | |
getCurrencies () | |
getParameter ($key) | |
setParameter ($key, $value) | |
setParameter ($key, $value) | |
Additional Inherited Members | |
![]() | |
const | API_VERSION = 'v1' |
![]() | |
$liveEndpoint = 'https://api.paypal.com' | |
$payerId = null | |
$testEndpoint = 'https://api.sandbox.paypal.com' | |
![]() | |
$currencies | |
$httpClient | |
$httpRequest | |
$negativeAmountAllowed = false | |
$parameters | |
$response | |
$zeroAmountAllowed = true | |
With each API call, you’ll need to set request headers, including an OAuth 2.0 access token. Get an access token by using the OAuth 2.0 client_credentials token grant type with your clientId:secret as your Basic Auth credentials.
https://developer.paypal.com/docs/api/#authentication–headers
Definition at line 19 of file lib/vendor/omnipay/paypal/src/Message/RestTokenRequest.php.
Omnipay\PayPal\Message\RestTokenRequest::getData | ( | ) |
Get the raw data array for this message. The format of this varies from gateway to gateway, but will usually be either an associative array, or a SimpleXMLElement.
Implements Omnipay\Common\Message\MessageInterface.
Definition at line 21 of file lib/vendor/omnipay/paypal/src/Message/RestTokenRequest.php.
Omnipay\PayPal\Message\RestTokenRequest::getData | ( | ) |
Get the raw data array for this message. The format of this varies from gateway to gateway, but will usually be either an associative array, or a SimpleXMLElement.
Implements Omnipay\Common\Message\MessageInterface.
Definition at line 21 of file vendor/omnipay/paypal/src/Message/RestTokenRequest.php.
|
protected |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 26 of file vendor/omnipay/paypal/src/Message/RestTokenRequest.php.
|
protected |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 26 of file lib/vendor/omnipay/paypal/src/Message/RestTokenRequest.php.
Referenced by Omnipay\PayPal\Message\RestTokenRequest\sendData().
Omnipay\PayPal\Message\RestTokenRequest::sendData | ( | $data | ) |
Send the request with specified data
mixed | $data | The data to send |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 31 of file lib/vendor/omnipay/paypal/src/Message/RestTokenRequest.php.
References Omnipay\Common\Message\AbstractRequest\$httpRequest, Omnipay\PayPal\Message\AbstractRestRequest\getClientId(), Omnipay\PayPal\Message\RestTokenRequest\getEndpoint(), Omnipay\PayPal\Message\AbstractRestRequest\getHttpMethod(), and Omnipay\PayPal\Message\AbstractRestRequest\getSecret().
Omnipay\PayPal\Message\RestTokenRequest::sendData | ( | $data | ) |
Send the request with specified data
mixed | $data | The data to send |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 31 of file vendor/omnipay/paypal/src/Message/RestTokenRequest.php.
References Omnipay\PayPal\Message\RestTokenRequest\getEndpoint(), and Omnipay\PayPal\Message\AbstractRestRequest\getHttpMethod().