Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const paypalPayments = require('./paypalpayments.js');
function Basket(customer, items){
this.add = function(item) {
this.checkout = function (payments) {
return, customer.creditCard)
} = function() {
return items.reduce((sum, item) => sum + (item.price * item.quantity), 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.