You are here

function stripe_payment_payment_method_insert in Stripe 7

Implements hook_ENTITY_TYPE_ACTION().

File

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

Code

function stripe_payment_payment_method_insert(PaymentMethod $payment_method) {
  if ($payment_method->controller->name === 'StripePaymentMethodController') {
    stripe_payment_payment_method_update($payment_method);
  }
}