interface ExpressCheckoutInterface in Commerce PayPal 8
Provides the interface for the Express Checkout payment gateway.
Hierarchy
- interface \Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\SupportsAuthorizationsInterface; interface \Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\SupportsRefundsInterface
- interface \Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway\ExpressCheckoutInterface
Expanded class hierarchy of ExpressCheckoutInterface
All classes that implement ExpressCheckoutInterface
File
- src/
Plugin/ Commerce/ PaymentGateway/ ExpressCheckoutInterface.php, line 13
Namespace
Drupal\commerce_paypal\Plugin\Commerce\PaymentGatewayView source
interface ExpressCheckoutInterface extends SupportsAuthorizationsInterface, SupportsRefundsInterface {
/**
* Gets the API URL.
*
* @return string
* The API URL.
*/
public function getApiUrl();
/**
* Gets the redirect URL.
*
* @return string
* The redirect URL.
*/
public function getRedirectUrl();
/**
* Performs a PayPal Express Checkout NVP API request.
*
* @param array $nvp_data
* The NVP API data array as documented.
* @param \Drupal\commerce_order\Entity\OrderInterface $order
* The order entity, or null.
*
* @return array
* PayPal response data.
*
* @see https://developer.paypal.com/docs/classic/api/#express-checkout
*/
public function doRequest(array $nvp_data, OrderInterface $order = NULL);
/**
* SetExpressCheckout API Operation (NVP) request.
*
* Builds the data for the request and make the request.
*
* @param \Drupal\commerce_payment\Entity\PaymentInterface $payment
* The payment.
* @param array $extra
* Extra data needed for this request.
*
* @return array
* PayPal response data.
*
* @see https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/
*/
public function setExpressCheckout(PaymentInterface $payment, array $extra);
/**
* GetExpressCheckoutDetails API Operation (NVP) request.
*
* Builds the data for the request and make the request.
*
* @param \Drupal\commerce_order\Entity\OrderInterface $order
* The order.
*
* @return array
* PayPal response data array.
*
* @see https://developer.paypal.com/docs/classic/api/merchant/GetExpressCheckoutDetails_API_Operation_NVP/
*/
public function getExpressCheckoutDetails(OrderInterface $order);
/**
* GetExpressCheckoutDetails API Operation (NVP) request.
*
* Builds the data for the request and make the request.
*
* @param \Drupal\commerce_order\Entity\OrderInterface $order
* The order.
*
* @return array
* PayPal response data.
*
* @see https://developer.paypal.com/docs/classic/api/merchant/GetExpressCheckoutDetails_API_Operation_NVP/
*/
public function doExpressCheckoutDetails(OrderInterface $order);
/**
* DoCapture API Operation (NVP) request.
*
* Builds the data for the request and make the request.
*
* @param \Drupal\commerce_payment\Entity\PaymentInterface $payment
* The payment.
* @param int $amount_number
* The amount number to be captured.
*
* @return array
* PayPal response data.
*
* @see https://developer.paypal.com/docs/classic/api/merchant/DoCapture_API_Operation_NVP/
*/
public function doCapture(PaymentInterface $payment, $amount_number);
/**
* DoVoid API Operation (NVP) request.
*
* Builds the data for the request and make the request.
*
* @param \Drupal\commerce_payment\Entity\PaymentInterface $payment
* The payment.
*
* @return array
* PayPal response data.
*
* @see https://developer.paypal.com/docs/classic/api/merchant/DoVoid_API_Operation_NVP/
*/
public function doVoid(PaymentInterface $payment);
/**
* RefundTransaction API Operation (NVP) request.
*
* Builds the data for the request and make the request.
*
* @param \Drupal\commerce_payment\Entity\PaymentInterface $payment
* The payment.
* @param array $extra
* Extra data needed for this request, ex.: refund amount, refund type, etc....
*
* @return array
* PayPal response data.
*
* @see https://developer.paypal.com/docs/classic/api/merchant/RefundTransaction_API_Operation_NVP/
*/
public function doRefundTransaction(PaymentInterface $payment, array $extra);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExpressCheckoutInterface:: |
public | function | DoCapture API Operation (NVP) request. | 1 |
ExpressCheckoutInterface:: |
public | function | GetExpressCheckoutDetails API Operation (NVP) request. | 1 |
ExpressCheckoutInterface:: |
public | function | RefundTransaction API Operation (NVP) request. | 1 |
ExpressCheckoutInterface:: |
public | function | Performs a PayPal Express Checkout NVP API request. | 1 |
ExpressCheckoutInterface:: |
public | function | DoVoid API Operation (NVP) request. | 1 |
ExpressCheckoutInterface:: |
public | function | Gets the API URL. | 1 |
ExpressCheckoutInterface:: |
public | function | GetExpressCheckoutDetails API Operation (NVP) request. | 1 |
ExpressCheckoutInterface:: |
public | function | Gets the redirect URL. | 1 |
ExpressCheckoutInterface:: |
public | function | SetExpressCheckout API Operation (NVP) request. | 1 |
SupportsAuthorizationsInterface:: |
public | function | Checks whether the given payment can be captured. | |
SupportsAuthorizationsInterface:: |
public | function | Captures the given authorized payment. | 1 |
SupportsRefundsInterface:: |
public | function | Checks whether the given payment can be refunded. | |
SupportsRefundsInterface:: |
public | function | Refunds the given payment. | 2 |
SupportsVoidsInterface:: |
public | function | Checks whether the given payment can be voided. | |
SupportsVoidsInterface:: |
public | function | Voids the given payment. | 2 |