simpleCart(js)

items
Items:
Total:

PayPal

In order to use PayPal Standard checkout, you can set the options like this:

simpleCart({
    checkout: { 
        type: "PayPal" , 
        email: "you@yours.com" 
    } 
});

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

simpleCart({
    checkout: { 
        type: "PayPal" , 
        email: "you@yours.com" ,

        // use paypal sandbox, default is false
        sandbox: true , 

        // 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" 
    } 
});

 

Comments

  1. May 11, 2012

    GG  said:

    Is paypal express checkout supported?

    When selling goods that need to be shipped, we need to rely on the Paypal backend for the customers email and home address? Paypal checkout doesn’t have an optional field for remarks? It would be nice not to need self-hosted post-forms and handle all via Paypal…

  2. Sep 20, 2012

    Jon Horton  said:

    PLEASE clean up your comment spam!

Commenting is not available in this channel entry.