Project Wonder 5.0

er.wopaypal
Class PayPalSingleItemLinkBase

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

public abstract class PayPalSingleItemLinkBase
extends com.webobjects.appserver.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/interfaces inherited from class com.webobjects.appserver.WOComponent
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
 
Field Summary
 java.lang.Boolean allowCustomerNote
          whether or not to allow the customer to add comment in a note
 java.lang.String amount
          cost of the item
 java.lang.String cancelURL
          the URL to which the customer will be taken if he cancels the purchase; defaults to PayPal
 java.lang.Boolean collectShippingAddress
          whether or not to add shipping address to the purchase
 java.lang.String currencyCode
          currency of transaction; Currently supported are: USD (US Dollars), CAD (Canadian Dollars), GBP (British Pounds Sterling), EUR (Euros), JPY (Japanese Yen).
 java.lang.String custom
          a custom string that will be "passed through" Paypal's service and back to you; never shown to the customer
 java.lang.String itemName
          a string to represent the item's plain language name (up to 127 char), e.g.
 java.lang.String itemNumber
          a string to represent the item # (up to 127 char); like a UPC code, or a stocking code, etc.
 java.lang.String logoURL
          URL to a 150 x 50 pixel image that can be used to customize the PayPal transaction page.
 java.lang.String notifyURL
          the URL to which PayPal will send the Instant Payment Notifications, if you've set up that option
static java.lang.String PAYPAL_CGI_NAME
          The cgi script name we're calling on PayPal's server.
 java.lang.String payPalBusinessName
          Required by PayPal, this is a valid PayPal account name; hopefully your own if you want to make any money...
 java.lang.String returnURL
          the URL to which the customer will be taken upon completion of the purchase; defaults to PayPal
 java.lang.String tax_rate
          Transaction-based tax override variable.
 java.lang.Boolean useDefaultIPNURL
          use the default IPN Notification URL from the PayPalAction class?
 java.lang.Boolean useIPN
          are we using Instant Payment Notification?
 java.lang.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.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Fields inherited from interface com.webobjects.foundation.NSValidation
_CLASS
 
Constructor Summary
PayPalSingleItemLinkBase(com.webobjects.appserver.WOContext context)
          Constructor.
 
Method Summary
protected abstract  com.webobjects.foundation.NSArray additionalBindingList()
          for subclasses to add additional bindings
protected  com.webobjects.foundation.NSArray baseBindingList()
          the base list of bindings to pull from WOComponents
protected  java.lang.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 java.lang.String PAYPAL_CGI_NAME
The cgi script name we're calling on PayPal's server.


payPalBusinessName

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


allowCustomerNote

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


amount

public java.lang.String amount
cost of the item


currencyCode

public java.lang.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 java.lang.String itemName
a string to represent the item's plain language name (up to 127 char), e.g. "Cool Widget";


collectShippingAddress

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


userDefinableQuantity

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


custom

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


itemNumber

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


logoURL

public java.lang.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 java.lang.String cancelURL
the URL to which the customer will be taken if he cancels the purchase; defaults to PayPal


returnURL

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


notifyURL

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


useIPN

public java.lang.Boolean useIPN
are we using Instant Payment Notification?


useDefaultIPNURL

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


tax_rate

public java.lang.String tax_rate
Transaction-based tax override variable.

Constructor Detail

PayPalSingleItemLinkBase

public PayPalSingleItemLinkBase(com.webobjects.appserver.WOContext context)
Constructor.

Parameters:
context - WOContext
Method Detail

baseBindingList

protected com.webobjects.foundation.NSArray baseBindingList()
the base list of bindings to pull from WOComponents

Returns:
NSArray

additionalBindingList

protected abstract com.webobjects.foundation.NSArray additionalBindingList()
for subclasses to add additional bindings

Returns:
NSArray

defaultNotificationURL

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

Returns:
String

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.