Project Wonder 2.0

er.wopaypal
Class PayPalSingleItemLinkBase

java.lang.Object
  extended bycom.webobjects.appserver.WOElement
      extended bycom.webobjects.appserver.WOComponent
          extended byer.wopaypal.PayPalSingleItemLinkBase
All Implemented Interfaces:
Cloneable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, WOActionResults
Direct Known Subclasses:
PayPalSingleItemFormLink, PayPalSingleItemHyperlink

public abstract class PayPalSingleItemLinkBase
extends WOComponent

PayPalSingleItemLinkBase is the abstract superclass for most of the PayPal components. It contains the bulk of the values that PayPal is interested in, and the list of bindings that those values correlate to.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.webobjects.appserver.WOComponent
WOComponent._EventLoggingEnabler, WOComponent.Event
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes inherited from class com.webobjects.foundation.NSValidation
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Field Summary
 Boolean allowCustomerNote
          whether or not to allow the customer to add comment in a note
 String amount
          cost of the item
 String cancelURL
          the URL to which the customer will be taken if he cancels the purchase; defaults to PayPal
 Boolean collectShippingAddress
          whether or not to add shipping address to the purchase
 String currencyCode
          currency of transaction; Currently supported are: USD (US Dollars), CAD (Canadian Dollars), GBP (British Pounds Sterling), EUR (Euros), JPY (Japanese Yen).
 String custom
          a custom string that will be "passed through" Paypal's service and back to you; never shown to the customer
 String itemName
          a string to represent the item's plain language name (up to 127 char), e.g.
 String itemNumber
          a string to represent the item # (up to 127 char); like a UPC code, or a stocking code, etc.
 String logoURL
          URL to a 150 x 50 pixel image that can be used to customize the PayPal transaction page.
 String notifyURL
          the URL to which PayPal will send the Instant Payment Notifications, if you've set up that option
static String PAYPAL_CGI_NAME
          The cgi script name we're calling on PayPal's server.
 String payPalBusinessName
          Required by PayPal, this is a valid PayPal account name; hopefully your own if you want to make any money...
 String returnURL
          the URL to which the customer will be taken upon completion of the purchase; defaults to PayPal
 Boolean useDefaultIPNURL
          use the default IPN Notification URL from the PayPalAction class?
 Boolean useIPN
          are we using Instant Payment Notification?
 Boolean userDefinableQuantity
          flag to tell PayPal whether or not to show a user-editable quantity field for the item
 
Fields inherited from class com.webobjects.appserver.WOComponent
_Extension, _IsEventLoggingEnabled, _keyAssociations
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
_CLASS, NullValue
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSValidation
_CLASS
 
Constructor Summary
PayPalSingleItemLinkBase(WOContext context)
          Constructor.
 
Method Summary
protected abstract  NSArray additionalBindingList()
          for subclasses to add additional bindings
protected  NSArray baseBindingList()
          the base list of bindings to pull from WOComponents
protected  String defaultNotificationURL()
          try to intelligently construct the path back to the ipnAction in the PayPalAction class
 
Methods inherited from class com.webobjects.appserver.WOComponent
_associationWithName, _awakeInContext, _childTemplate, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, appendToResponse, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PAYPAL_CGI_NAME

public static String PAYPAL_CGI_NAME
The cgi script name we're calling on PayPal's server.


payPalBusinessName

public String payPalBusinessName
Required by PayPal, this is a valid PayPal account name; hopefully your own if you want to make any money...


allowCustomerNote

public Boolean allowCustomerNote
whether or not to allow the customer to add comment in a note


amount

public String amount
cost of the item


currencyCode

public String currencyCode
currency of transaction; Currently supported are: USD (US Dollars), CAD (Canadian Dollars), GBP (British Pounds Sterling), EUR (Euros), JPY (Japanese Yen). Defaults to USD.


itemName

public String itemName
a string to represent the item's plain language name (up to 127 char), e.g. "Cool Widget";


collectShippingAddress

public Boolean collectShippingAddress
whether or not to add shipping address to the purchase


userDefinableQuantity

public Boolean userDefinableQuantity
flag to tell PayPal whether or not to show a user-editable quantity field for the item


custom

public String custom
a custom string that will be "passed through" Paypal's service and back to you; never shown to the customer


itemNumber

public String itemNumber
a string to represent the item # (up to 127 char); like a UPC code, or a stocking code, etc.


logoURL

public String logoURL
URL to a 150 x 50 pixel image that can be used to customize the PayPal transaction page. This is VERY discouraged unless your image is on an https server.


cancelURL

public String cancelURL
the URL to which the customer will be taken if he cancels the purchase; defaults to PayPal


returnURL

public String returnURL
the URL to which the customer will be taken upon completion of the purchase; defaults to PayPal


notifyURL

public String notifyURL
the URL to which PayPal will send the Instant Payment Notifications, if you've set up that option


useIPN

public Boolean useIPN
are we using Instant Payment Notification?


useDefaultIPNURL

public Boolean useDefaultIPNURL
use the default IPN Notification URL from the PayPalAction class?

Constructor Detail

PayPalSingleItemLinkBase

public PayPalSingleItemLinkBase(WOContext context)
Constructor.

Parameters:
context - WOContext
Method Detail

baseBindingList

protected NSArray baseBindingList()
the base list of bindings to pull from WOComponents

Returns:
NSArray

additionalBindingList

protected abstract NSArray additionalBindingList()
for subclasses to add additional bindings

Returns:
NSArray

defaultNotificationURL

protected String defaultNotificationURL()
try to intelligently construct the path back to the ipnAction in the PayPalAction class

Returns:
String

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.