Methods

.update(configObj)

Modify this checkout's settings this is the same as changing the settings during spiffy.checkout(url, configObj)

.open()

Open checkout in popup modal

.close()

Close checkout popup modal

.fullscreen.on()

Sets the checkout to fill the browser window. This is used internally when going to an upsell or thank you page while pageTakeover is enabled.

.fullscreen.off()

Returns the checkout to it's normal view

Add/Remove Event Listeners

The .on() and .off() methods can be used directly on a checkout object to scope the event listeners to that specific checkout (see event listener docs)

// find or create checkout instance
var checkout = spiffy.checkout("https://yourcompany.spiffy.co/checkout/test-checkout")

// add event listener
checkout.on('form:ready', function () {
    // do things...
})

Last updated