feature-policy-payment.html (410B)
1 <script> 2 'use strict'; 3 4 window.onload = function() { 5 var supportedInstruments = [ { supportedMethods: [ 'visa' ] } ]; 6 var details = { 7 total: { label: 'Test', amount: { currency: 'USD', value: '5.00' } } 8 }; 9 try { 10 new PaymentRequest(supportedInstruments, details); 11 parent.postMessage({ enabled: true }, '*'); 12 } catch (e) { 13 parent.postMessage({ enabled: false }, '*'); 14 } 15 } 16 </script>