> For the complete documentation index, see [llms.txt](https://developers.spiffy.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.spiffy.co/spiffyjs/introduction/settings.md).

# 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](/spiffyjs/introduction/methods.md#update-configobj) 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

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