This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
PaymentRequestBehavior = { | |
listeners: { | |
'show-payment-request': '_requestPayment', | |
}, | |
_requestPayment: function(e, total) { | |
var supportedInstruments = [{ | |
supportedMethods: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var methods = ["//android.com/pay", "visa", "mastercard", "amex", "discover"]; | |
var request = { | |
"items": [ | |
{ | |
"id": "basket", | |
"label": "Sub-total", | |
"amount": { | |
"currencyCode": "USD", | |
"value": "55.00" | |
} |