Interface nsIBasicCardResponseDataType

The basic card response data. Since PaymentAddress is an no constructor interface type, UI code can not easy create PaymentAddress by calling new PaymentAddress(). Unfortunately, BasicCardResponse has a PaymentAddress attribute, billingAddress , it means UI can not create BsaicCardResponse by calling the init() with a given JSObject directly, because PaymentAddress creation in JS code is hard. To let UI code can create BasicCardResponse easier, nsIBasicCardResponse is provided for UI by passing the raw data of BasicCardResponse,

Hierarchy

Properties

billingAddress: nsIPaymentAddress

The billing address.

cardNumber: string

The card number.

cardSecurityCode: string

The card security number.

cardholderName: string

The cardholder name.

expiryMonth: string

The expiry month.

expiryYear: string

The expiry year.

type: uint32_t

The response data type. Using the above defined consts(GENERAL_RESPONSE or BASICCARD_RESPONSE).

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • The initial method.

    Parameters

    • aType: uint32_t

      the response data type.

    Returns void

  • The initial method for nsIBasicCardResponseData.

    Parameters

    • aCardholderName: string

      the cardholder name.

    • aCardNumber: string

      the card number.

    • aExpiryMonth: string

      the expiry month.

    • aExpiryYear: string

      the expiry year.

    • aCardSecurityCode: string

      the card security code.

    • billingAddress: nsIPaymentAddress

    Returns void

Generated using TypeDoc