- From: MimiaBenna <notifications@github.com>
- Date: Wed, 15 Feb 2023 02:19:17 -0800
- To: w3c/payment-handler <payment-handler@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 15 February 2023 10:19:29 UTC
Hello,
I create a service worker and a payment manager they are well registered on my browser. I made an instrument set but I can't find the instrument to register with the payment methods and when I look at the payment process, the instrument key is empty.
` console.log(navigator.serviceWorker.ready)
return navigator.serviceWorker.ready;
}).then((registration) => {
console.log(registration)
if (!registration.paymentManager) {
console.log('No payment handler capability in this browser. Is chrome://flags/#service-worker-payment-apps enabled?');
return;
}
if (!registration.paymentManager.instruments) {
console.log('Payment handler is not fully implemented. Cannot set the instruments.');
return;
}
registration.paymentManager.instruments
.set('instrument-key', {
name: 'Chrome uses name and icon from the web app manifest',
enabledMethods: ['https://paymentTrequest.fr'],
method: 'https://paymentTrequest.fr',
capabilities: {supportedNetworks: ['yo', 'rt'],
supportedTypes: ['debit', 'credit']}
})`
Any help please
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-handler/issues/410
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/payment-handler/issues/410@github.com>
Received on Wednesday, 15 February 2023 10:19:29 UTC