From 00cadf47ccc911e736c0df39cda81a81b4d00978 Mon Sep 17 00:00:00 2001 From: adavidw Date: Thu, 26 Oct 2017 11:08:19 -0600 Subject: [PATCH 1/9] adding standalone acceptJS sample pages --- acceptjs.html | 82 ++++++++++++++++++++++++++++++++++ acceptjs_with_hosted_form.html | 69 ++++++++++++++++++++++++++++ 2 files changed, 151 insertions(+) create mode 100755 acceptjs.html create mode 100755 acceptjs_with_hosted_form.html diff --git a/acceptjs.html b/acceptjs.html new file mode 100755 index 0000000..433fbb9 --- /dev/null +++ b/acceptjs.html @@ -0,0 +1,82 @@ + + + + + + + Sample form + + + + + + +
+

+

+

+

+ + + +
+ + + + + \ No newline at end of file diff --git a/acceptjs_with_hosted_form.html b/acceptjs_with_hosted_form.html new file mode 100755 index 0000000..e0288f3 --- /dev/null +++ b/acceptjs_with_hosted_form.html @@ -0,0 +1,69 @@ + + + + + + + Sample form + + + + + + +
+ + + +
+ + + + + \ No newline at end of file From 0c3a8ccb7b09da1b9da455be72b297049e475622 Mon Sep 17 00:00:00 2001 From: Aaron Wright Date: Tue, 31 Oct 2017 09:45:27 -0600 Subject: [PATCH 2/9] Update acceptjs.html --- acceptjs.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acceptjs.html b/acceptjs.html index 433fbb9..3ab17d9 100755 --- a/acceptjs.html +++ b/acceptjs.html @@ -37,7 +37,7 @@ function sendPaymentDataToAnet() { var authData = {}; authData.clientKey = "YOUR PUBLIC CLIENT KEY"; - authData.apiLoginId = "YOUR API LOGIN"; + authData.apiLoginId = "YOUR API LOGIN ID"; var cardData = {}; cardData.cardNumber = document.getElementById("cardNumber").value; @@ -79,4 +79,4 @@ - \ No newline at end of file + From 2508f7f7ba1ab73c4173a438b3efa0ccc079d7f4 Mon Sep 17 00:00:00 2001 From: Aaron Wright Date: Tue, 31 Oct 2017 09:45:48 -0600 Subject: [PATCH 3/9] Update acceptjs_with_hosted_form.html --- acceptjs_with_hosted_form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acceptjs_with_hosted_form.html b/acceptjs_with_hosted_form.html index e0288f3..1dcf2b4 100755 --- a/acceptjs_with_hosted_form.html +++ b/acceptjs_with_hosted_form.html @@ -28,7 +28,7 @@ + method="POST" + action="https://YourServer/PathToExistingPaymentProcessingScript" > +

+

+

+

+

+

+

+

+ + + diff --git a/acceptjs_with_hosted_form.html b/acceptjs_with_hosted_form.html index 2d5bea6..bdae8ab 100755 --- a/acceptjs_with_hosted_form.html +++ b/acceptjs_with_hosted_form.html @@ -2,66 +2,70 @@ - Sample form + Sample form
- - - + method="POST" + action="https://YourServer/PathToExistingPaymentProcessingScript"> + + +
From 82dde10758ea65921154412cb5d6a8a03d313b70 Mon Sep 17 00:00:00 2001 From: adavidw Date: Mon, 6 Nov 2017 14:28:10 -0700 Subject: [PATCH 6/9] clarify it's not just "credit" cards --- acceptjs_with_hosted_form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acceptjs_with_hosted_form.html b/acceptjs_with_hosted_form.html index bdae8ab..ee11822 100755 --- a/acceptjs_with_hosted_form.html +++ b/acceptjs_with_hosted_form.html @@ -31,7 +31,7 @@ data-apiLoginID="YOUR API LOGIN ID" data-clientKey="YOUR PUBLIC CLIENT KEY" data-acceptUIFormBtnTxt="Submit" - data-acceptUIFormHeaderTxt="Credit Card Information" + data-acceptUIFormHeaderTxt="Card Information" data-responseHandler="responseHandler">Pay From 8b437d444ab3959e6ea13026056b5c2cab6792a6 Mon Sep 17 00:00:00 2001 From: adavidw Date: Mon, 6 Nov 2017 15:56:14 -0700 Subject: [PATCH 7/9] formatting --- acceptjs.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acceptjs.html b/acceptjs.html index a0c6d3a..ba5ef1f 100755 --- a/acceptjs.html +++ b/acceptjs.html @@ -51,6 +51,7 @@ // If using banking information instead of card information, // build a bankData object instead of a cardData object. + // // var bankData = {}; // bankData.accountNumber = document.getElementById('accountNumber').value; // bankData.routingNumber = document.getElementById('routingNumber').value; @@ -62,6 +63,7 @@ secureData.cardData = cardData; // If using banking information instead of card information, // send the bankData object instead of the cardData object. + // // secureData.bankData = bankData; Accept.dispatchData(secureData, responseHandler); From ae209c89f57021df3afd64188c3e5f43e908288c Mon Sep 17 00:00:00 2001 From: adavidw Date: Mon, 6 Nov 2017 17:56:38 -0700 Subject: [PATCH 8/9] missing word --- acceptjs_with_hosted_form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acceptjs_with_hosted_form.html b/acceptjs_with_hosted_form.html index ee11822..dcad075 100755 --- a/acceptjs_with_hosted_form.html +++ b/acceptjs_with_hosted_form.html @@ -3,7 +3,7 @@