Interface nsIPaymentShowActionResponseType

The response for show action. Notice that to represent user's cancel, we should use nsIPaymentShowActionResponse with PAYMENT_REJECTED status, not nsIPaymentAbortActionResponse.

Hierarchy

Properties

acceptStatus: uint32_t

Accept status of the payment. Using the defined consts(PAYMENT_XXX) in nsIPaymentActionResponse.

data: nsIPaymentResponseData

The data needed by the payment method. (it must be serializable)

methodName: string

The decided payment method name. i.e. "basic-card".

payerEmail: string

The payer email information.

payerName: string

The payer name information.

payerPhone: string

The payer phone information.

requestId: string

The payment request identity.

type: uint32_t

The response type.

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

    • aRequestId: string

      the request identifier of the payment request.

    • aAcceptStatus: uint32_t

      the payment status.

    • aMethodName: string

      the decided method name.

    • aData: nsIPaymentResponseData

      the response data for the decided payment method.

    • aPayerName: string

      the payer's name.

    • aPayerEmail: string

      the payer's email.

    • aPayerPhone: string

      the payer's phone.

    Returns void

Generated using TypeDoc