Open Journal Systems
3.3.0
|
Protected Member Functions | |
getHttpMethod () | |
getHttpMethod () | |
![]() | |
createResponse ($data, $statusCode) | |
createResponse ($data, $statusCode) | |
![]() | |
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 | |
PayPal REST Fetch Purchase Request
Use this call to get details about payments that have not completed, such as payments that are created and approved, or if a payment has failed.
See RestPurchaseRequest for the first part of this example transaction:
// Fetch the transaction so that details can be found for refund, etc. $transaction = $gateway->fetchPurchase(); $transaction->setTransactionReference($sale_id); $response = $transaction->send(); $data = $response->getData(); echo "Gateway fetchTransaction response data == " . print_r($data, true) . "\n";
// Fetch the transaction so that details can be found for refund, etc. $transaction = $gateway->fetchPurchase(); $transaction->setTransactionReference($sale_id); $response = $transaction->send(); $data = $response->getData(); echo "Gateway fetchTransaction response data == " . print_r($data, true) . "\n";
RestPurchaseRequest https://developer.paypal.com/docs/api/#look-up-a-payment-resource Definition at line 30 of file lib/vendor/omnipay/paypal/src/Message/RestFetchPurchaseRequest.php.
Omnipay\PayPal\Message\RestFetchPurchaseRequest::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 32 of file lib/vendor/omnipay/paypal/src/Message/RestFetchPurchaseRequest.php.
References Omnipay\Common\Message\AbstractRequest\validate().
Omnipay\PayPal\Message\RestFetchPurchaseRequest::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 32 of file vendor/omnipay/paypal/src/Message/RestFetchPurchaseRequest.php.
References Omnipay\Common\Message\AbstractRequest\validate().
Omnipay\PayPal\Message\RestFetchPurchaseRequest::getEndpoint | ( | ) |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 51 of file vendor/omnipay/paypal/src/Message/RestFetchPurchaseRequest.php.
References Omnipay\Common\Message\AbstractRequest\getTransactionReference().
Omnipay\PayPal\Message\RestFetchPurchaseRequest::getEndpoint | ( | ) |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 51 of file lib/vendor/omnipay/paypal/src/Message/RestFetchPurchaseRequest.php.
References Omnipay\Common\Message\AbstractRequest\getTransactionReference().
|
protected |
Get HTTP Method.
The HTTP method for fetchTransaction requests must be GET. Using POST results in an error 500 from PayPal.
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 46 of file lib/vendor/omnipay/paypal/src/Message/RestFetchPurchaseRequest.php.
|
protected |
Get HTTP Method.
The HTTP method for fetchTransaction requests must be GET. Using POST results in an error 500 from PayPal.
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 46 of file vendor/omnipay/paypal/src/Message/RestFetchPurchaseRequest.php.