/*
* Copyright 2018 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
self.addEventListener('canmakepayment', (evt) => {
evt.respondWith(true);
});
self.addEventListener('paymentrequest', (evt) => {
evt.respondWith({
methodName: evt.methodData[0].supportedMethods,
details: {transactionId: '123'},
});
});