Scripting Language Samples

Secure Acceptance
can support any dynamic scripting language that supports HMAC256 hashing algorithms.
Select the scripting language you use to download a sample script:

Sample Transaction Process Using JSP

  1. payment_form.jsp
    file—represents the customer's product selection on a website. Enter your access key and profile ID into their respective fields. POST the fields to your server to sign and create the signature. All 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.

    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. payment_confirmation.jsp
    file—represents the customer order review page on a website, before the customer makes a payment. POST transaction to the
    Secure Acceptance
    endpoint and render the
    Hosted Checkout Integration
    . See Payment Transactions.