E-xact Knowledge Base

View Articles by Category

There are no sub categories
Add an article to this category

Category » Sample Coderss button

There were 12 articles found in this category:

  1. questionSample code for generating the hash for Hosted Checkout using C#
    To generate x_fp_hash using C# (SHA-1), please see the snippet below: using System; using System.Security; using System.Security.Cryptography; using System.Text; class CalculateHash { static void Main() { StringBuilder sb = new StringBuilder(); // x_login^x_fp_sequence^x_fp_timestamp^x_am ...
  2. questionSample code for generating the hash for Hosted Checkout using Python
    To generate x_fp_hash using Python, please see the snippet below: ---------------------------------------------------------------------------------------------- import hmac import hashlib # Instantiate hmac with Transaction key (HMAC-MD5) # digest_maker = hmac.new('V0WX5fK~o6eEhr7hbs3ZeyxS', '', ...
  3. questionSample code for generating the hash for Hosted Checkout using C
    To generate x_fp_hash using C, please see the snippet below: ---------------------------------------------------------------------------------------------- #include #include int main() {To generate x_fp_hash using C, please see the snippet below: ------------------------------------------------- ...
  4. questionSample code for generating the hash for Hosted Checkout using Ocaml
    To generate x_fp_hash using Ocaml, please see the snippet below: ----------------------------------------------------------------------------------------------- (* Requres Ocaml Cryptokit http://caml.inria.fr/distrib/bazar-ocaml/cryptokit-1.3.tar.gz *) (* then invoke as 'ocaml unix.cma nums.cma ...
  5. questionSample code for generating the hash for Hosted Checkout using ColdFusion MX
    To generate x_fp_hash using ColdFusion please see the code below: <!--- <!--- Coldfusion sample for HMAC-MD5 or HMAC-SHA1 hash generation. The hash obtained and the payment data are used in the POST form (not shown here - see Hosted Checkout Integration Manual for details). This is Verifi ...
  6. questionSample Code: Perl example for calculating HMAC SHA1
    Please see below for an example of how to calculate the x_fp_hash value using the SHA1 approach in Perl. ---- <!-- #!/usr/bin/perl -w use strict; # Prerequisites # In order to be able to calculate the HMAC MD5 digest, we use a function hmac_md5_hex below. # # 1. Install Digest::MD5 from http ...
  7. questionSample Code: PHP example for calculating HMAC SHA1
    Please see below for an example of how to calculate the x_fp_hash value using the SHA1 approach in PHP. ---- <!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" co ...
  8. questionSample Code: Tomcat example for calculating HMAC SHA1
    Please see below for an example of how to calculate the x_fp_hash value using the SHA1 approach in Tomcat. ---- <!-- <!-- Sample JSP code for Hosted Checkout Calculating the x_fp_hash with SHA-1 E-xact Transactions 2009 Tested on Tomcat5/Mac OS X 10.5 --> <html> <head> < ...
  9. questionSample Code: Relay Response (Ruby)
    The Relay Response sample code below what the merchant would send back to E-xact after receiving the transaction results from our servers. In this Ruby example, the developer would change each "merchant.com" placeholder URL to the merchant's absolute URL equivalent. <!DOCTYPE html PUBLIC ...
  10. questionSample Code: Relay Response (Java)
    The Relay Response sample code below what the merchant would send back to E-xact after receiving the transaction results from our servers. In this Java example, the developer would change each "merchant.com" placeholder URL to the merchant's absolute URL equivalent. <%@ page language="java" ...
  11. questionSample Code: Relay Response (ASP)
    The Relay Response sample code below what the merchant would send back to E-xact after receiving the transaction results from our servers. In this ASP example, the developer would change each "merchant.com" placeholder URL to the merchant's absolute URL equivalent. <% Response.Expires = 0 Di ...
  12. questionSample Code: Relay Response (PHP)
    The Relay Response sample code below what the merchant would send back to E-xact after receiving the transaction results from our servers. In this PHP example, the developer would change each "merchant.com" placeholder URL to the merchant's absolute URL equivalent. <!DOCTYPE html PUBLIC " ...