You are here

final class StripeEvents in Stripe 2.x

Same name and namespace in other branches
  1. 8 src/Event/StripeEvents.php \Drupal\stripe\Event\StripeEvents

Defines events for stripe webhooks.

Hierarchy

Expanded class hierarchy of StripeEvents

3 files declare their use of StripeEvents
StripeBase.php in src/Element/StripeBase.php
StripeExamplesEventSubscriber.php in modules/stripe_examples/src/EventSubscriber/StripeExamplesEventSubscriber.php
StripeWebhookController.php in src/Controller/StripeWebhookController.php

File

src/Event/StripeEvents.php, line 8

Namespace

Drupal\stripe\Event
View source
final class StripeEvents {

  /**
   * The name of the event fired when a webhook is received.
   *
   * @Event
   */
  const WEBHOOK = 'stripe.webhook';

  /**
   * The name of the event fired when allowing modules to change the client side
   * properties of the stripe workflow, like updating prices or massaging post
   * data to fill biling address.
   *
   * @Event
   */
  const PAYMENT = 'stripe.payment';

}

Members

Namesort descending Modifiers Type Description Overrides
StripeEvents::PAYMENT constant The name of the event fired when allowing modules to change the client side properties of the stripe workflow, like updating prices or massaging post data to fill biling address.
StripeEvents::WEBHOOK constant The name of the event fired when a webhook is received.