Well, I notice the new Google Checkout has now just plunked onto the scene, and their
code samples page has a conspicuous absence of perl. The
developer docs appear to be quite thorough, seems like it's just a bunch of http POSTs using a well structured XML schema. CPAN turns up missing the Google::Checkout module, so I may get to it, but the project I'd need it for is starting some months from now...
Off the top of my head, you'd want the full CRUD interface for the whole object model they defined, I think, a la
my $cart = Google::Checkout::Cart;
$cart->add_item(
name => 'Bill',
description => 'a pal',
price => 'priceless', quantity => 2
);
$cart->post(
merchant_auth_encoded =>
q[MTIzNDU2Nzg5MDpIc1lYRm9aZkhBcXlMY0NSWWVIOHFR]
);
but personally, I'd (probably) never use that, instead opting for the magical "hash to google checkout" function (..
Google::Checkout::from_hash(%args) ? )
maybe it's not too bad of an idea to implement that function as a wrapper to XML::Simple with the right config, and running the result against
google's schema for verification? Then doing the post as per google 's spec.
Anyhow, sorry I've got no code, I'm probably not qualified to write such an "industrial strength" module yet (don't make mistakes with banking code!), but I'd like to help if any were interested in leading the way. Or at least hear about your progress. Thanks!
Edit: g0n - removed readmore tags
It's not what you look like, when you're doin' what you’re doin'.
It's what you’re doin' when you’re doin' what you look like you’re doin'!
- Charles Wright & the Watts 103rd Street Rhythm Band, Express yourself
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.