eb_donation Class
Define eb_donation class.
Item Index
Methods
Properties
- eb_donation.bluepayHPPPayment
- eb_donation.defaultErrorMessage
- eb_donation.defaultImage
- eb_donation.errorResponses
- eb_donation.fundACHPayment
- eb_donation.fundACHPayment
- eb_donation.fundRaisingProduct
- eb_donation.fundRaisingProduct
- eb_donation.fundRaisingProduct
- eb_donation.orderConfirmationUrl
- eb_donation.ServicePath
- eb_donation.SitePath
- eb_donation.TemplatePath
Methods
eb_donation.cardPayment
-
cardDetails -
card
This method is used to credit card or saved card or ACH payment based on card type.
Parameters:
-
cardDetailsObjectCardDetails of login user.
-
cardStringcard type to do credit card or saved card or ACH payment
Returns:
jQuery promise object which when resolved returns payment details.
eb_donation.domElement
-
domElement
Page DOM element.
Parameters:
-
domElementObjectcurrent DOM element.
eb_donation.getFundRaisingData
()
Object
Get fund raising data from the server through the get service call.
Returns:
Return Array of state
eb_donation.model
-
options
Donation Model for binding data. The model contains observable properties to hold corresponding data returned from services. Also, model contains computed properties and methods to support Donation functionality.
Parameters:
-
optionsObjectContains necessary data which is required for Donations functionality.
-
ServicePathStringService URL.
-
SitePathStringSite URL.
-
dataObjectContains data returned from service which is used to construct Donations model.
-
domElementObjectDOM element.
-
templatePathStringHTML path.
-
eb_donation.render
-
options
Rendering public method to load HTML template. Based on page level configuration it will select the template and load in DOM. Template path and DOM element are required parameters. GET the template by Ajax call using template path and then assign it to DOM element.
Parameters:
-
optionsObjectObject with data required for getting HTML template through Ajax call.
-
SitePathStringSite path.
-
templatePathStringHTML file path.
-
domElementObjectDOM element.
-
Returns:
jQuery promise object which when resolved returns HTML template.
Properties
eb_donation.bluepayHPPPayment
String
Retrieve Bluepay Hosted Payment Request URL for Fund Raising
eb_donation.defaultErrorMessage
String
Default error message.
eb_donation.defaultImage
String
Default image URL. If product image is not available, default image will be shown.
eb_donation.errorResponses
Object
Globally defined error codes object for the control. Every error code should have boolean 'useServerMessage' attribute, which when true suggests we are showing service error message on the UI. If the 'useServerMessage' is defined as false, then provide another attribute 'frontEndMessage' with the error string which will be shown on UI. If 'useServerMessage' is false and 'frontEndMessage' is not defined, default error message will be shown. If service error response contains error code not defined in this object then default error message will be shown.
eb_donation.fundACHPayment
String
Post fund raising checkout ACH payment
eb_donation.fundACHPayment
String
Post fund raising checkout ACH payment
eb_donation.fundRaisingProduct
String
GET fund raising product
eb_donation.fundRaisingProduct
String
Post fund raising checkout creditcard
eb_donation.fundRaisingProduct
String
Post fund raising checkout saved payment
eb_donation.orderConfirmationUrl
String
Order Confirmation page redirection
eb_donation.ServicePath
String
The path to the eBusiness SOA layer.
eb_donation.SitePath
String
Control level setting: Site path.
eb_donation.TemplatePath
String
Control level setting Template path.
