Settings

You're able to modify the settings of a checkout when getting it's instance using spiffy.checkout(url, configObj) or by using the update method on the checkout object.

  • configObj - object of config properties

    • coupon:undefined - Apply a coupon to this checkout

    • customer:undefined - Object of customer

      • email - String of email to be pre-filled on checkout

      • name_first - String of first name to be pre-filled on checkout

      • name_last - String of last name to be pre-filled on checkout

Example Config

{
    // Enables div version of components
    coupon: 'COUPONCODE',
    customer: {
        email: 'jon@snow.com',
        name_first: 'Jon',
        name_last: 'Snow',
    }
}

Last updated