Skip to main content

resursPaymentMethodSelected

Fires when a payment method is selected. The detail property contains:
JavaScript example:
TypeScript example:

resursPaymentMethodDeselected

Fires when a payment method is deselected. The detail property contains { id } for a specific deselection, or null when all methods are deselected.

JavaScript API reference

The script exposes window.resurs with utility functions for programmatic control.

resurs.dispatchSelected(id)

Programmatically select a payment method. Fires the global resursPaymentMethodSelected event.

resurs.dispatchDeselected()

Programmatically deselect all payment methods. Fires the global resursPaymentMethodDeselected event.