Commit f589a662 authored by jenlampton's avatar jenlampton

Clearrer comments on the js.

parent c2582796
......@@ -103,7 +103,8 @@
}
/**
* Updtes the webform with the transaction ID returned from AuthNet.
* Updtes the webform with the Payment Noce returned from AuthNet, and
* effectively removes credit card details from the form.
*/
useOpaqueData = function(responseData) {
// For Debugging.
......@@ -111,7 +112,7 @@
//console.log(responseData.dataValue);
//alert(responseData.dataValue);
// Insert the data value into the hidden Transaction ID field.
// Insert the Payment Nonce into the hidden Transaction ID field.
$(context).find("[data-authnet-field--transaction_id]").val(responseData.dataValue);
// Remove the name attributes to prevent values from touching the server.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment