Results 1 to 1 of 1
Hybrid View
-
14th Mar 2012, 06:21 AM #1OPMemberWebsite's:
TeamUploads.com GamerW.netAPI and MD5 Hash Problems Help Needed
Hello Below Is Example Of API of CCNOW Shopping Cart
<form method="POST" action="https://www.ccnow.com/cgi-local/transact.cgi">
<input type="hidden" name="x_login" value="amylove">
<input type="hidden" name="x_version" value="1.0">
<input type="hidden" name="x_fp_arg_list"
value="x_login^x_fp_arg_list^x_fp_sequence^x_amoun t^x_currency_code">
<input type="hidden" name="x_fp_sequence" value="1111084438">
<input type="hidden" name="x_currency_code" value="USD">
<input type="hidden" name="x_method" value="NONE">
<input type="hidden" name="x_name" value="John Smith">
<input type="hidden" name="x_address" value="123 Main St">
<input type="hidden" name="x_address2" value="Apt #1">
<input type="hidden" name="x_city" value="Los Angeles">
<input type="hidden" name="x_state" value="CA">
<input type="hidden" name="x_zip" value="90025">
<input type="hidden" name="x_country" value="US">
<input type="hidden" name="x_phone" value="310-123-1234">
<input type="hidden" name="x_email" value="jsmith@somewhere.com">
<input type="hidden" name="x_ship_to_name" value="">
<input type="hidden" name="x_ship_to_address" value="">
<input type="hidden" name="x_ship_to_address2" value="">
<input type="hidden" name="x_ship_to_city" value="">
<input type="hidden" name="x_ship_to_state" value="">
<input type="hidden" name="x_ship_to_zip" value="">
<input type="hidden" name="x_ship_to_country" value="">
<input type="hidden" name="x_ship_to_phone" value="">
<input type="hidden" name="x_shipping_amount" value="10.00">
<input type="hidden" name="x_shipping_label" value="Shipping and Handling">
<input type="hidden" name="x_shipping_method" value="Ground">
<input type="hidden" name="x_discount_amount" value="">
<input type="hidden" name="x_discount_label" value="">
<input type="hidden" name="x_invoice_num" value="AL-1111084432">
<input type="hidden" name="x_instructions" value="">
<input type="hidden" name="x_product_sku_1" value="CS-7112">
<input type="hidden" name="x_product_title_1" value="Beachy White T-Shirt">
<input type="hidden" name="x_product_quantity_1" value="1">
<input type="hidden" name="x_product_unitprice_1" value="13.50">
<input type="hidden" name="x_product_url_1" value="www.ccnow.com">
<input type="hidden" name="x_product_sku_2" value="BH-1130">
<input type="hidden" name="x_product_title_2" value="My Kind of Cap">
<input type="hidden" name="x_product_quantity_2" value="2">
<input type="hidden" name="x_product_unitprice_2" value="16.00">
<input type="hidden" name="x_product_url_2" value="www.ccnow.com">
<input type="hidden" name="x_amount" value="55.50">
<input type="hidden" name="x_fp_hash"
value="e44b8aeb153f23d3806fdab6221885e8">
<input type="submit" value=" Place Order ">
</form>
use strict;
use Digest::MD5 qw(md5 md5_hex md5_base64);
eval {
my $clientLogin = "amylove";
my $fpSequence = "1111084438";
my $amount = "55.50";
my $currencyCode = "USD";
my $clientKey = "123456789";
my $test = "$clientLogin^x_login^x_fp_arg_list^x_fp_sequence^ x_amount^x_currency_code^$fpSequence^$amount^$curr encyCode^$clientKey";
my $digest = md5_hex($test);
open(OUTFILE, ">md5_digest_value.txt");
print OUTFILE $digest;
close(OUTFILE);
print "Digest of $test = " . md5($test) . "\n";
}; if($@){
hang($@);
}
hang("finished");
sub hang
{
my ($error) = @_;
print "Script exited with: '$error'\n";
print "press enter to exit\n";
my $foo = <STDIN>;
die ;
}
<input type="hidden" name="x_fp_hash"
value="e44b8aeb153f23d3806fdab6221885e8">
I solved it my self kindly close this thread.sahil00150 Reviewed by sahil00150 on . API and MD5 Hash Problems Help Needed Hello Below Is Example Of API of CCNOW Shopping Cart i wanna generate x_fp_hash with my personal values for this i contact support of ccnow they give me below code now can anyone explain or help me how i generate x_fp_hash in this field and it result like this to me Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Other] MD5 Hash-MD5 Change
By zoug100 in forum ArchiveReplies: 3Last Post: 5th Nov 2011, 02:05 AM -
VB4 Password Hash Method
By danswano in forum Webmaster DiscussionReplies: 3Last Post: 25th Apr 2011, 07:38 PM -
Multi MD5 Hash Generator
By Mahaj in forum Technical Help Desk SupportReplies: 5Last Post: 10th Mar 2011, 06:22 PM -
What is MD5 HASH/MD5 CHANGE.......?
By myvissa in forum Hosting DiscussionReplies: 5Last Post: 22nd Dec 2010, 06:44 AM -
What is MD5 hash or MD5 change?
By ArthonaD87 in forum General DiscussionReplies: 3Last Post: 6th Nov 2010, 06:44 AM
themaCreator - create posts from...
Version 3.53 released. Open older version (or...