Skip to content

Instantly share code, notes, and snippets.

@horlah
Created August 13, 2020 08:41
Show Gist options
  • Select an option

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

Select an option

Save horlah/3c5fb6aec80004e554bd658e83b02eae to your computer and use it in GitHub Desktop.
Setting payment details in 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