SpiffyJS
  • SpiffyJS
    • Overview
    • Config
    • Elements
    • Methods
    • Events
    • Checkouts
      • Settings
      • Methods
      • Events
    • Affiliates
  • JavaScript API (beta)
    • Overview
    • Examples
  • Examples
    • Full Page Loader
    • Dynamically Apply Discounts
  • REST API
  • Back to Spiffy
Powered by GitBook
On this page

Was this helpful?

  1. SpiffyJS
  2. Checkouts

Settings

PreviousCheckoutsNextMethods

Last updated 4 years ago

Was this helpful?

You're able to modify the settings of a checkout when getting it's instance using spiffy.checkout(url, configObj) or by using the 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',
    }
}
update method