blob: 401a86eb235d9277c2ee83a15ef725965077973f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<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>
|