PelcroPaymentMethodDeleted

Fired when a payment method is removed

Overview

Fired when a payment method is removed from the user's account.


Triggered By

MethodDescription
Pelcro.paymentMethods.delete()Removing a payment method

Event Detail

The event.detail object contains the deleted payment method information.


Example

document.addEventListener('PelcroPaymentMethodDeleted', (event) => {
  const paymentMethod = event.detail;

  console.log(`Payment method removed: ${paymentMethod.id}`);

  showMessage('Payment method removed');

  // Update payment methods list
  refreshPaymentMethodsList();
});

Related