2012-08-29 14:41:34 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIPaymentFlowInfo;
|
|
|
|
|
2012-12-03 12:44:58 -08:00
|
|
|
[scriptable, function, uuid(b9afa678-71a5-4975-bcdb-0c4098730eff)]
|
2012-08-29 14:41:34 -07:00
|
|
|
interface nsIPaymentUIGlueCallback : nsISupports
|
|
|
|
{
|
2012-12-03 12:44:58 -08:00
|
|
|
void onresult(in DOMString requestId, in DOMString result);
|
2012-08-29 14:41:34 -07:00
|
|
|
};
|
|
|
|
|
2012-12-03 12:44:58 -08:00
|
|
|
[scriptable, uuid(4dda9aa0-df88-4dcd-a583-199e516fa438)]
|
2012-08-29 14:41:34 -07:00
|
|
|
interface nsIPaymentUIGlue : nsISupports
|
|
|
|
{
|
|
|
|
// The 'paymentRequestsInfo' contains the payment request information
|
2012-10-16 02:28:30 -07:00
|
|
|
// for each JWT provided via navigator.mozPay call.
|
2012-12-03 12:44:58 -08:00
|
|
|
void confirmPaymentRequest(in DOMString requestId,
|
|
|
|
in jsval paymentRequestsInfo,
|
2012-08-29 14:41:34 -07:00
|
|
|
in nsIPaymentUIGlueCallback successCb,
|
|
|
|
in nsIPaymentUIGlueCallback errorCb);
|
|
|
|
|
2012-12-03 12:44:58 -08:00
|
|
|
void showPaymentFlow(in DOMString requestId,
|
|
|
|
in nsIPaymentFlowInfo paymentFlowInfo,
|
2012-08-29 14:41:34 -07:00
|
|
|
in nsIPaymentUIGlueCallback errorCb);
|
2012-10-16 02:28:30 -07:00
|
|
|
|
|
|
|
void cleanup();
|
2012-08-29 14:41:34 -07:00
|
|
|
};
|