@romandev: I could not access the payment manager in service worker context unless I added [Exposed=(Window, Worker)]` on the PaymentManager interface. No need to add `Exposed` to the partial interface attribute. Could you do that, please?
```webidl
[
Exposed=(Window,Worker), // Please add this line.
RuntimeEnabled=PaymentApp,
ConstructorCallWith=ExecutionContext
] interface PaymentManager {
readonly attribute PaymentInstruments instruments;
attribute DOMString userHint;
};
```
https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/payments/payment_manager.idl?rcl=ef6fc42bdc561722ddb2c0fbb0eec6d2f1d568ba&l=13
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-handler/pull/293#issuecomment-381651480