Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A couple of changes #5

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

A couple of changes #5

wants to merge 9 commits into from

Conversation

amaltsev
Copy link

@amaltsev amaltsev commented Nov 6, 2012

Thanks for the great MWS module, you should push it to CPAN!

I made a couple of fixes while integrating it into the project I'm working on. I hope you find them useful.

amaltsev and others added 9 commits November 5, 2012 18:45
The sha1 signature did not work for me. Replaced with SHA256.

Also making sure the endpoint ends with '/' -- without it the base
string for the signature does not match the original Amazon assumes and
signature verification fails.

Replaced GET with POST. Not sure why GET does not work, but it does not
for me.

Added exception catching to the example for Exception::Class newbies
like myself.
It's an incompatible change, but without it it simply does not work.
Report ids are 64bit integers, they may overflow perl's integers.
There is no math on report IDs, so it's better to treat them as
strings.
Report IDs
    _GET_FLAT_FILE_PAYMENT_SETTLEMENT_DATA_
    _GET_ALT_FLAT_FILE_PAYMENT_SETTLEMENT_DATA_
    _GET_PAYMENT_SETTLEMENT_DATA_

were obsoleted on 5/31/2015 and since mid-June do not return any documents.

The are replaced by:

    _GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_
    _GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2_
    _GET_V2_SETTLEMENT_REPORT_DATA_XML_

Also fixed syntax for Perl 5.20.2 compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant