Skip to content

Commit 848b083

Browse files
authored
Remove custom IDL for Payment handler APIs (#2248)
1 parent 00404d4 commit 848b083

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

custom/idl/payment-handler.idl

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,3 @@ interface AbortPaymentEvent : ExtendableEvent {
88
partial interface ServiceWorkerGlobalScope {
99
attribute EventHandler onabortpayment;
1010
};
11-
12-
// https://github.com/w3c/payment-handler/pull/170
13-
partial interface CanMakePaymentEvent {
14-
readonly attribute FrozenArray<PaymentDetailsModifier> modifiers;
15-
};
16-
17-
partial interface PaymentRequestEvent {
18-
// https://github.com/w3c/payment-handler/pull/393
19-
readonly attribute DOMString instrumentKey;
20-
};
21-
22-
23-
partial interface CanMakePaymentEvent {
24-
attribute DOMString paymentRequestOrigin;
25-
attribute DOMString topOrigin;
26-
};
27-
28-
// Removed in https://github.com/w3c/payment-handler/pull/409
29-
partial interface CanMakePaymentEvent {
30-
attribute Float32Array methodData;
31-
};
32-
33-
partial interface PaymentManager {
34-
[SameObject] readonly attribute PaymentInstruments instruments;
35-
};
36-
37-
38-
[SecureContext, Exposed=(Window,Worker)]
39-
interface PaymentInstruments {
40-
Promise<boolean> delete(DOMString instrumentKey);
41-
Promise<any> get(DOMString instrumentKey);
42-
Promise<sequence<DOMString>> keys();
43-
Promise<boolean> has(DOMString instrumentKey);
44-
Promise<undefined> set(DOMString instrumentKey, any details);
45-
Promise<undefined> clear();
46-
};

0 commit comments

Comments
 (0)