1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 callback SilentSmsCallback = void (optional MozSmsMessage message);
9 dictionary PaymentIccInfo {
16 [NavigatorProperty="mozPaymentProvider",
18 HeaderFile="mozilla/dom/PaymentProviderUtils.h",
19 Func="mozilla::dom::PaymentProviderUtils::EnabledForScope",
20 JSImplementation="@mozilla.org/payment/provider;1"]
21 interface PaymentProvider {
22 readonly attribute DOMString? paymentServiceId;
23 // We expose to the payment provider the information of all the SIMs
24 // available in the device.
25 [Cached, Pure] readonly attribute sequence<PaymentIccInfo>? iccInfo;
27 void paymentSuccess(optional DOMString result);
28 void paymentFailed(optional DOMString error);
30 DOMRequest sendSilentSms(DOMString number, DOMString message);
31 void observeSilentSms(DOMString number, SilentSmsCallback callback);
32 void removeSilentSmsObserver(DOMString number, SilentSmsCallback callback);