Add CVV field to selfcheck credit card payment interface
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 24 May 2010 18:31:41 +0000 (18:31 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 24 May 2010 18:31:41 +0000 (18:31 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16488 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/circ/selfcheck/payment.js
Open-ILS/web/templates/default/circ/selfcheck/payment.tt2

index a8cbbce..bfceb90 100644 (file)
@@ -21,6 +21,7 @@ proto.drawPayFinesPage = function(patron, onPaymentSubmit) {
     dojo.query("span", "oils-selfck-cc-payment-summary")[0].innerHTML = total;
 
     oilsSelfckCCNumber.attr('value', '');
+    oilsSelfckCCCVV.attr('value', '');
     oilsSelfckCCMonth.attr('value', '01');
     oilsSelfckCCYear.attr('value', new Date().getFullYear());
     oilsSelfckCCFName.attr('value', patron.first_given_name());
@@ -74,6 +75,7 @@ proto.sendCCPayment = function(onPaymentSubmit) {
         cc_args : {
             where_process : 1,
             number : oilsSelfckCCNumber.attr('value'),
+            cvv2 : oilsSelfckCCCVV.attr('value'),
             expire_year : oilsSelfckCCYear.attr('value'),
             expire_month : oilsSelfckCCMonth.attr('value'),
             billing_first : oilsSelfckCCFName.attr('value'),
index 616020e..9ae3155 100644 (file)
@@ -8,6 +8,10 @@
             <td><input dojoType='dijit.form.TextBox' jsId='oilsSelfckCCNumber' required='true'/></td>
         </tr>
         <tr>
+            <td>CVV #</td>
+            <td><input dojoType='dijit.form.TextBox' jsId='oilsSelfckCCCVV' required='true'/></td>
+        </tr>
+        <tr>
             <td>Exipration Month</td>
             <td>
                 <select dojoType='dijit.form.FilteringSelect' jsId='oilsSelfckCCMonth' required='true'>