Open Journal Systems
3.3.0
|
Additional Inherited Members | |
![]() | |
const | API_VERSION = 'v1' |
![]() | |
createResponse ($data, $statusCode) | |
createResponse ($data, $statusCode) | |
getHttpMethod () | |
getHttpMethod () | |
![]() | |
getCurrencies () | |
getParameter ($key) | |
setParameter ($key, $value) | |
setParameter ($key, $value) | |
![]() | |
$liveEndpoint = 'https://api.paypal.com' | |
$payerId = null | |
$testEndpoint = 'https://api.sandbox.paypal.com' | |
![]() | |
$currencies | |
$httpClient | |
$httpRequest | |
$negativeAmountAllowed = false | |
$parameters | |
$response | |
$zeroAmountAllowed = true | |
Use this resource to capture and process a previously created authorization. To use this resource, the original payment call must have the intent set to authorize.
To capture payment, make a call to /v1/payments/authorization/{authorization_id}/capture with the authorization ID in the URI along with an amount object. For a partial capture, you can provide a lower amount. Additionally, you can explicitly indicate a final capture (prevent future captures) by setting the is_final_capture value to true.
Note this example assumes that the authorization has been successful and that the authorization ID returned from the authorization is held in $auth_id. See RestAuthorizeRequest for the first part of this example transaction:
// Once the transaction has been authorized, we can capture it for final payment. $transaction = $gateway->capture(array( 'amount' => '10.00', 'currency' => 'AUD', )); $transaction->setTransactionReference($auth_id); $response = $transaction->send();
// Once the transaction has been authorized, we can capture it for final payment. $transaction = $gateway->capture(array( 'amount' => '10.00', 'currency' => 'AUD', )); $transaction->setTransactionReference($auth_id); $response = $transaction->send();
RestAuthorizeRequest https://developer.paypal.com/docs/api/#capture-an-authorization Definition at line 40 of file lib/vendor/omnipay/paypal/src/Message/RestCaptureRequest.php.
Omnipay\PayPal\Message\RestCaptureRequest::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 42 of file lib/vendor/omnipay/paypal/src/Message/RestCaptureRequest.php.
References Omnipay\Common\Message\AbstractRequest\getAmount(), Omnipay\Common\Message\AbstractRequest\getCurrency(), and Omnipay\Common\Message\AbstractRequest\validate().
Omnipay\PayPal\Message\RestCaptureRequest::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 42 of file vendor/omnipay/paypal/src/Message/RestCaptureRequest.php.
References Omnipay\Common\Message\AbstractRequest\getAmount(), Omnipay\Common\Message\AbstractRequest\getCurrency(), and Omnipay\Common\Message\AbstractRequest\validate().
Omnipay\PayPal\Message\RestCaptureRequest::getEndpoint | ( | ) |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 55 of file vendor/omnipay/paypal/src/Message/RestCaptureRequest.php.
References Omnipay\Common\Message\AbstractRequest\getTransactionReference().
Omnipay\PayPal\Message\RestCaptureRequest::getEndpoint | ( | ) |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 55 of file lib/vendor/omnipay/paypal/src/Message/RestCaptureRequest.php.
References Omnipay\Common\Message\AbstractRequest\getTransactionReference().