On This Page

{#jumplink-list}  
[Markdown](/docs/cybs/en-us/sa/developer/all/sa-checkout/secure-acceptance/sa-samples-scripting-languages/sa-sample-txn-process-using-jsp.md)  
Filter  
FILTER BY TAG

Sample Transaction Process Using JSP {#sa-sample-txn-process-using-jsp}
=======================================================================

1. ***signeddatafields.jsp*** file---paste your access key and profile ID into their respective fields. The customer enters billing, shipping, and other information. POST the fields to your server to sign and create the signature. The fields must be included in the signed_field_names field as a CSV list.

2. ***security.jsp*** file---security algorithm signs fields and creates a signature using the signed_field_names field. Enter your security key in the SECRET_KEY field. Modify the security script to include the Secret Key that you generated in [Security Keys](/docs/cybs/en-us/sa/developer/all/sa-checkout/secure-acceptance/sa-payment-configuration/sa-security-keys.md "").

   #### ADDITIONAL INFORMATION

   The security algorithm in each security script sample is responsible for:

   * Request authentication---the signature is generated on the merchant server by the keyed-HMAC signing the request parameters using the shared secret key. This process is also carried out on the `Secure Acceptance` server, and the two signatures are compared for authenticity.
   * Response authentication---the signature is generated on the `Secure Acceptance` server by HMAC signing the response parameters, using the shared secret key. This process is also carried out on the merchant server, and the two signatures are compared for authenticity.
3. ***unsigneddatafields.jsp*** file---customer enters their payment information: card type, card number, and card expiry date. Include these fields in the unsigned_field_names field. POST the transaction to the Secure Acceptance endpoint.  
   RELATED TO THIS PAGE

