SendForm Checkout

SendForm checkout allows you to submit a form to an arbitrary url, which can allow you to do a custom checkout. You can setup the method like this:

evoShop({
    checkout: { 
        type: "SendForm" , 
        url: "http://example.com/your/custom/checkout/url" 
    } 
});

There are additional optional parameters that can be set as well:

evoShop({
    checkout: { 
        type: "SendForm" , 
        url: "http://example.com/your/custom/checkout/url" ,

        // http method for form, "POST" or "GET", default is "POST"
        method: "GET" , 

        // url to return to on successful checkout, default is null
        success: "success.html" , 

        // url to return to on cancelled checkout, default is null
        cancel: "cancel.html" ,

        // an option list of extra name/value pairs that can
        // be sent along with the checkout data
        extra_data: {
          storename: "Bob's cool plumbing store",
          cartid: "12321321"
        }
    } 
});