This section includes examples to help you understand how to form the string to sign with signature version 2. New lines have been inserted to make the examples easier to read. Explicit '\n' is used wherever new line is required.
Example IPN sent by ASP signed using signature version 2:
Instant Payment Notification URL: http://yourwebsite.com/ipn.jsp
Parameters sent by ASP in IPN (using HTTP POST):
transactionId: 14GPH3CZ83RPQ1ZH6J2G85NL1IO3KO8641R
transactionDate: 1254987247
signatureVersion: 2
signatureMethod: RSA-SHA1
status: PS
buyerEmail: test-sender@amazon.com
referenceId: test-reference123
operation: pay
transactionAmount: USD 1.100000
recipientEmail: test-recipient@amazon.com
buyerName: test sender
signature: g2tEn6VVu8VKsxnkWeCPn8M9HABkzkVGbYTozSSKg9Y7B5Xsvq5GSoXkDlaz+izQM56wzvgFCou7
9un06KI6CeE4lf0SSsonoPInqvTrKoS/XPZqBChtdfciCqSyWBpPZ2YaEbSYEZdk1YZW0W7oeezg
QqgzBL/CLN9U128GyFllt3/Yxr6p+XBltBUjh0kGmdAFVuFgwYq7h7cyMwAyseIRU7vDW5qsTreA
PBmae9h3v4oZly5CyNDP+4HhExyzakf2r+UBEqj9EwZtek3k9qj956dlG8Dd3QeEF9AqjLp0D+7M
yZr0rupNcWNbO1wGX8aEda/FvoWMRxXB3sU9dw==
recipientName: Test Business
paymentMethod: CC
certificateUrl: https://fps.sandbox.amazonaws.com/certs/090909/PKICert.pem
paymentReason: Test Widget
String to sign in signature version 2:
POST\n yourwebsite.com\n /ipn.jsp\n buyerEmail=test-sender%40amazon.com& buyerName=test%20sender& certificateUrl=https%3A%2F%2Ffps.sandbox.amazonaws.com%2Fcerts%2F090909%2FPKICert.pem& operation=pay& paymentMethod=CC& paymentReason=Test%20Widget& recipientEmail=test-recipient%40amazon.com& recipientName=Test%20Business& referenceId=test-reference123& signatureMethod=RSA-SHA1& signatureVersion=2& status=PS& transactionAmount=USD%201.100000& transactionDate=1254987247& transactionId=14GPH3CZ83RPQ1ZH6J2G85NL1IO3KO8641R