
Public Member Functions | |
| String | addToCartHref () |
| String | onClickString () |
| PayPalAddToCartHyperlink (WOContext context) | |
Static Protected Attributes | |
| static String | PAYPAL_CGI_COMMAND = "?cmd=_cart&add=1" |
It returns the appropriate url to add an item to the user's PayPal shopping cart.
| PayPalAddToCartHyperlink | ( | WOContext | context | ) |
Constructor
| context | WOContext |
| String addToCartHref | ( | ) |
addToCartHref assembles the URL for the item, based on the values of the bindings it reads from the WOComponent. It gets the values, and most of it's code from the superclass.
| String onClickString | ( | ) |
onClickString basically takes the addToCartHref and embeds it in a JavaScript window.open() method, as per PayPal's instructions. The JavaScript called tells the browser to open a new window that loads the addToCartHref url and has the characteristics given...
String PAYPAL_CGI_COMMAND = "?cmd=_cart&add=1" [static, protected] |
The cgi command we're calling on PayPal's server.
Reimplemented from PayPalSingleItemHyperlink.
1.5.8