** I." *Y"
2 *>$$E:*3,32$.
$*.99$39,*,9 ,* 999 $ E
&%##%?@
<form method="POST" action="posthandler.action" id="adyen-encrypted-form">
&9%$?@
<input type="text" value="" size="20" autocomplete="off" data-encrypted-name="number">
9$
#$22$$3$/22<1FFFF#@@..RI *D
(')(#).(.'/R
*,$AD*,$1-":D>$$,3$,*
,3>$()$*2$
<input type="hidden" value=”GENERATE_ON_SERVER” id="generationtime" data-encrypted-
name=”generationtime”>
>$1
$:*.
<script src="js/adyen.encrypt.min.js"></script>
var form = document.getElementById('adyen-encrypted-form'); // the form element to encrypt
var key = "10001|80C7821C961865FB4AD23F172E220F819A5CC7B9956BC3458E2788"
…
+ "5F024B3294A933F4DC514DE0B5686F6C2A6A2D"; // the public key
adyen.encrypt.createEncryptedForm( form, key ); // the form will be encrypted before it is
submitted
A%%$3>B4
F$$3$:2$3,3,*$B",*IGHC.
I *D$$2$,*D$2B,,*C3$2
<$$$2.
var name = 'fieldnameofyourchoosing';
adyen.encrypt.createEncryptedForm( form, key {
name : name,
onsubmit : function(e) {
… Your AJAX Code Here …
e.preventDefault();
}
});