blob: 856a895ca595413876124ed38a3897df8ccf5ca5 [file] [log] [blame]
/*
* Copyright 2018 The Chromium Authors. All rights reserved.
* 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'},
});
});