API Docs for:
Show:

eb_donation Class

Define eb_donation class.

Methods

eb_donation.cardPayment

(
  • cardDetails
  • card
)
Object

This method is used to credit card or saved card or ACH payment based on card type.

Parameters:

  • cardDetails Object

    CardDetails of login user.

  • card String

    card type to do credit card or saved card or ACH payment

Returns:

Object:

jQuery promise object which when resolved returns payment details.

eb_donation.domElement

(
  • domElement
)

Page DOM element.

Parameters:

  • domElement Object

    current DOM element.

eb_donation.getFundRaisingData

() Object

Get fund raising data from the server through the get service call.

Returns:

Object:

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:

  • options Object

    Contains necessary data which is required for Donations functionality.

    • ServicePath String

      Service URL.

    • SitePath String

      Site URL.

    • data Object

      Contains data returned from service which is used to construct Donations model.

    • domElement Object

      DOM element.

    • templatePath String

      HTML path.

eb_donation.render

(
  • options
)
String

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:

  • options Object

    Object with data required for getting HTML template through Ajax call.

    • SitePath String

      Site path.

    • templatePath String

      HTML file path.

    • domElement Object

      DOM element.

Returns:

String:

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.