List Info

Thread: None Re: Generating Cart Signautre - API Documentation




None Re: Generating Cart Signautre - API Documentation
user name
2006-07-01 20:08:06
Maybe this depends on your HMAC_SHA1 implementation, but
with Perl's
Digest::HMAC_SHA1, you pass two parameters: $data, $key. The
cart xml
is the data and your merchant key is the key.

You convert the signature (which should be binary, not hex)
to base64
after you create it. So:

$signature = encode_base64(hmac_sha1($cart_xml,
$merchant_key));
$cart_xml_base64 = encode_base64($cart_xml);


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "API Integration Basics" group.
To post to this group, send email to
google-checkout-api-integrationgooglegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api
-integration
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )