Skip to content

Instantly share code, notes, and snippets.

@horlah
Last active August 13, 2020 08:37
Show Gist options
  • Select an option

  • Save horlah/e9d1aa26fb55d0f8bad634e924652e31 to your computer and use it in GitHub Desktop.

Select an option

Save horlah/e9d1aa26fb55d0f8bad634e924652e31 to your computer and use it in GitHub Desktop.
Setting supported payment method using Payment Request API
const paymentDetails = {
displayItems: [
{
label: 'Anvil L/S Crew Neck - Grey M x1',
amount: { currency: 'USD', value: '22.15' }
},{
label: 'Anvil L/S Crew Neck - Blue L x1',
amount: { currency: 'USD', value: '22.15' }
}
],
total: {
label: 'Total due',
amount: { currency: 'USD', value : '22.15' }
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment