Struct xpcom::interfaces::nsIPaymentRequestService [] [src]

#[repr(C)]
pub struct nsIPaymentRequestService { /* fields omitted */ }

interface nsIPaymentRequestService : nsISupports

/**
 *  nsPaymentRequestService is used to manage the created PaymentRequest in the
 *  chrome process. It is also the IPC agent for payment UI to communicate with
 *  merchant side.
 */

Methods

impl nsIPaymentRequestService
[src]

[src]

Cast this nsIPaymentRequestService to one of its base interfaces.

impl nsIPaymentRequestService
[src]

[src]

/**
   *  Get the nsIPaymentRequest through the given payment request identifier.
   *  @param aRequestId - the payment request identifier.
   *                      This is an internal id generated by Gecko.
   *  @return           - the requested payment request. null if there is no
   *                      coressponding nsIPaymentRequest for aRequestId.
   */

nsIPaymentRequest getPaymentRequestById (in AString aRequestId);

[src]

/**
   *  Get the enumerator for all managed nsIPaymentRequests.
   *  @return - an enumerator for all managed nsIPaymentRequests.
   */

nsISimpleEnumerator enumerate ();

[src]

/**
   *  Send the user's response to the merchant.
   *  @param aResponse - the user's response.
   */

void respondPayment (in nsIPaymentActionResponse aResponse);

[src]

/**
   *  Inform the merchant the shipping addres has changed.
   *  @param requestId - the request identifier of the payment request.
   *  @param aAddress - the new payment address.
   */

void changeShippingAddress (in AString requestId, in nsIPaymentAddress aAddress);

[src]

/**
   *  Inform the merchant the shipping option has changed.
   *  @param requestId - the request identifier of the payment request.
   *  @param option - the shipping option ID string.
   */

void changeShippingOption (in AString requestId, in AString option);

[src]

/**
   *  Following APIs are for testing or platform code only. UI implementation
   *  should not use them.
   */
/**
   *  Clean up the all managed payment requests.
   *  This API is for testing only.
   */

void cleanup ();

[src]

/**
   *  Setup the customized nsIPaymentUIService.
   *  This API is for testing only.
   */

void setTestingUIService (in nsIPaymentUIService aUIService);

[src]

/**
   *  Request a specified action on the specified PaymentRequest.
   *  @param aRequest - the requested action.
   */

void requestPayment (in nsIPaymentActionRequest aRequest);

[src]

/**
   *  This is a cleanup function to break the association between
   *  nsIPaymentRequestService and nsIPaymentActionCallback.
   *  nsIPaymentActionCallback is an interface that registered to
   *  nsIPaymentRequestService when the merchant asks to perform actions, and it
   *  will be called when user's response send back to nsIPaymentRequestService.
   *  @param aCallback - the specified nsIPaymentActionCallback.
   */

void removeActionCallback (in nsIPaymentActionCallback aCallback);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIPaymentRequestService
[src]

IID: nsIID = nsID(3436013151, 60915, 16892, [171, 155, 252, 85, 179, 115, 64, 170])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIPaymentRequestService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPaymentRequestService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.