You are here

class StripeEvents in Commerce Stripe 8

Defines events for the Commerce Stripe module.

Hierarchy

Expanded class hierarchy of StripeEvents

2 files declare their use of StripeEvents
Stripe.php in src/Plugin/Commerce/PaymentGateway/Stripe.php
TransactionDataSubscriber.php in tests/modules/commerce_stripe_test/src/EventSubscriber/TransactionDataSubscriber.php

File

src/Event/StripeEvents.php, line 8

Namespace

Drupal\commerce_stripe\Event
View source
class StripeEvents {

  /**
   * Name of the event fired to add additional transaction data.
   *
   * This event is triggered when a Charge transaction is going
   * to be created. It allows subscribers to add additional
   * transaction data and metadata about the transaction.
   *
   * @Event
   *
   * @see https://stripe.com/blog/adding-context-with-metadata
   * @see https://stripe.com/docs/api#metadata
   * @see \Drupal\commerce_stripe\Event\TransactionDataEvent
   */
  const TRANSACTION_DATA = 'commerce_stripe.transaction_data';

}

Members

Namesort descending Modifiers Type Description Overrides
StripeEvents::TRANSACTION_DATA constant Name of the event fired to add additional transaction data.