amazon-pay-api-sdk-java icon indicating copy to clipboard operation
amazon-pay-api-sdk-java copied to clipboard

Signature generation should not rely on the default encoding

Open harawata opened this issue 3 years ago • 0 comments

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.

harawata avatar Jan 27 '22 21:01 harawata