Open Monograph Press
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 Transaction Request
To get details about completed payments (sale transaction) created by a payment request or to refund a direct sale transaction, PayPal provides the /sale resource and related sub-resources.
Example – note this example assumes that the purchase has been successful and that the transaction ID returned from the purchase is held in $sale_id. See RestPurchaseRequest for the first part of this example transaction:
// Fetch the transaction so that details can be found for refund, etc. $transaction = $gateway->fetchTransaction(); $transaction->setTransactionReference($sale_id); $response = $transaction->send(); $data = $response->getData(); echo "Gateway fetchTransaction response data == " . print_r($data, true) . "\n";
Definition at line 31 of file lib/vendor/omnipay/paypal/src/Message/RestFetchTransactionRequest.php.
Omnipay\PayPal\Message\RestFetchTransactionRequest::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 33 of file lib/vendor/omnipay/paypal/src/Message/RestFetchTransactionRequest.php.
References Omnipay\Common\Message\AbstractRequest\validate().
Omnipay\PayPal\Message\RestFetchTransactionRequest::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 33 of file vendor/omnipay/paypal/src/Message/RestFetchTransactionRequest.php.
References Omnipay\Common\Message\AbstractRequest\validate().
Omnipay\PayPal\Message\RestFetchTransactionRequest::getEndpoint | ( | ) |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 52 of file vendor/omnipay/paypal/src/Message/RestFetchTransactionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getTransactionReference().
Omnipay\PayPal\Message\RestFetchTransactionRequest::getEndpoint | ( | ) |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 52 of file lib/vendor/omnipay/paypal/src/Message/RestFetchTransactionRequest.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 47 of file lib/vendor/omnipay/paypal/src/Message/RestFetchTransactionRequest.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 47 of file vendor/omnipay/paypal/src/Message/RestFetchTransactionRequest.php.