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 propertiescoupon:undefined- Apply a coupon to this checkoutcustomer:undefined- Object of customeremail- String of email to be pre-filled on checkoutname_first- String of first name to be pre-filled on checkoutname_last- String of last name to be pre-filled on checkout
Example Config
{
// Enables div version of components
coupon: 'COUPONCODE',
customer: {
email: '[email protected]',
name_first: 'Jon',
name_last: 'Snow',
}
}Last updated
Was this helpful?