Fully functional PayPal shopping cart without serverside pages.

 

slCreateCart

Purpose:

Initializes a PayPal cart into a container.

Category:

PayPal Cart

Syntax:

slCreateCart "objId" "email" "notifyURL" virtual quantityUpdate "currency" "currencySign" persistDays "language"

 

objId

Select a container to show the cart

email

Business email (PayPal account)

notifyURL

URL to go after successful payment

virtual

Set to true when you are selling virtual items such as downloads

quantityUpdate

Set to false if you want to disable quantity updates in the cart

currency

Trading currency. Ex: USD, EUR, GBP

currencySign

Currency symbol. Ex: €, $, £

persistDays

Days of data persistence (0 for session only)

language

Language (EN, ES)

 

slAddToCart

Purpose:

Adds an item to the PayPal cart

Category:

PayPal Cart

Syntax:

slAddToCart "objId" "code" "itemDescription" quantity itemValue vat

 

objId

Select the cart container

code

Item code

itemDescription

Item description

quantity

Quantity

itemValue

Value

vat

VAT

 

slRemoveFromCart

Purpose:

Removes an item form the PayPal cart

Category:

PayPal Cart

Syntax:

slRemoveFromCart "objId" "code"

 

objId

Select the cart container

code

Item code

 

slUpdateCart

Purpose:

Updates the quantity of an item into the PayPal cart

Category:

PayPal Cart

Syntax:

slUpdateCart "objId" "code" quantity

 

objId

Select the cart container

code

Item code

quantity

Quantity