class StripeEvents in Commerce Stripe 8
Defines events for the Commerce Stripe module.
Hierarchy
- class \Drupal\commerce_stripe\Event\StripeEvents
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\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StripeEvents:: |
constant | Name of the event fired to add additional transaction data. |