Events
Last updated
Was this helpful?
Last updated
Was this helpful?
These global-only events can only be used on the global spiffy
object using . In addition to these, any sub-object events can be used globally as well.
General event that fires once Spiffy.js has successfully loaded and is ready. As a rule of thumb, any code that uses any methods or objects that belong to Spiffy.js should wait until ready
to fire
All checkout events can also be used globally
When an iframe url has been generated with all the necessary element and config data
data
- Object
uid
- uid of the iframe container
When the checkout or portal components have mounted in the iframe
data
- Object
uid
- uid of the iframe container
modality
- the modality of the iframe, either inline
or popup
When the items of a checkout/order change
data
- Object
uid
- uid of the iframe container
When a user adds or removes a coupon
data
- Object
uid
- uid of the iframe container
code
- coupon code used
When the selected payment plan on a checkout changes
data
- Object
uid
- uid of the iframe container
payplan
- Object
When changing from a checkout to an upsell or from one upsell to another
data
- Object
uid
- uid of the iframe container
slug
- checkout slug
When an attempt to process an order fails
data
- Object
uid
- uid of the iframe container
When changing from a checkout or upsell to a thank you page
data
- Object
uid
- uid of the iframe container
slug
- checkout slug
forward
- the forwarding url set for the thank you page otherwise undefined