From fc5dcef6cf0a3df94fec33c4f10b9e80b562514a Mon Sep 17 00:00:00 2001 From: Jeremy Mill Date: Wed, 2 Dec 2015 12:05:49 -0500 Subject: [PATCH] added blank payment to the JS --- .../TeamDBAwesome/js/HolderService.js | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/TeamDBAwesome/TeamDBAwesome/js/HolderService.js b/TeamDBAwesome/TeamDBAwesome/js/HolderService.js index 6f0ee39..31c4bd9 100644 --- a/TeamDBAwesome/TeamDBAwesome/js/HolderService.js +++ b/TeamDBAwesome/TeamDBAwesome/js/HolderService.js @@ -32,6 +32,23 @@ UnitPrice: null, }; + var Blank_Payment = { + //everyone needs cust id and type + CustomerId: null, + //types are strings + //"CC" = credit card + //"AP" = apple pay + //"GP" = google pay + Type: null, + //Token is needed if it's AP of GP + token: null, + //email only if it's GP + email: null, + //these two only if it's a CC + cardnum: null, + expr_date: null + } + //create the accessor for it return { @@ -40,6 +57,9 @@ }, getBlankTrack: function () { return Blank_Track; + }, + getBlankPayment: function () { + return Blank_Payment; } };