You are here

public function ExpressCheckoutRequestEvent::__construct in Commerce PayPal 8

Constructs a new ExpressCheckoutRequestEvent object.

Parameters

array $nvp_data: The NVP API data array as documented.

\Drupal\commerce_order\Entity\OrderInterface $order: The order entity, or null.

File

src/Event/ExpressCheckoutRequestEvent.php, line 37

Class

ExpressCheckoutRequestEvent
Defines the Express Checkout request event.

Namespace

Drupal\commerce_paypal\Event

Code

public function __construct(array $nvp_data, OrderInterface $order = NULL) {
  $this->nvpData = $nvp_data;
  $this->order = $order;
}