blob: 401a86eb235d9277c2ee83a15ef725965077973f [file] [log] [blame]
<script>
'use strict';
window.onload = function() {
var supportedInstruments = [ { supportedMethods: [ 'visa' ] } ];
var details = {
total: { label: 'Test', amount: { currency: 'USD', value: '5.00' } }
};
try {
new PaymentRequest(supportedInstruments, details);
parent.postMessage({ enabled: true }, '*');
} catch (e) {
parent.postMessage({ enabled: false }, '*');
}
}
</script>