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-integration googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api
-integration
-~----------~----~----~----~------~----~------~--~---
|