public function TransactionDataEvent::__construct in Commerce Braintree 8
Constructs a new TransactionDataEvent object.
Parameters
array $transactionData: The transaction data to submit to Braintree.
\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment.
File
- src/
Event/ TransactionDataEvent.php, line 40
Class
- TransactionDataEvent
- Defines the transaction data event.
Namespace
Drupal\commerce_braintree\EventCode
public function __construct(array $transactionData, PaymentInterface $payment) {
$this->payment = $payment;
$this->transactionData = $transactionData;
}