amazon-pay-api-sdk-java
amazon-pay-api-sdk-java copied to clipboard
Signature generation should not rely on the default encoding
Description of changes:
AmazonPayClient#generateButtonSignature() could return incorrect signature when the payload contains non-ascii characters and the system's default encoding is not UTF-8.
I encountered this issue when I set some Japanese characters in noteToBuyer.
Although setting file.encoding property can be a workaround, it should not be required.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.