You are here

function stripe_payment_payment_insert in Stripe 7

Implements hook_ENTITY_TYPE_ACTION().

File

stripe_payment/stripe_payment.module, line 319
Stripe Payment module.

Code

function stripe_payment_payment_insert(Payment $payment) {
  if ($payment->method->controller->name === 'StripePaymentMethodController') {
    stripe_payment_payment_update($payment);
  }
}