Examples of ReturnUrl redirect requests signed with signature version 2

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 return url redirection request by ASP signed using signature version 2:

    Return URL : http://yourwebsite.com/return.jsp
    Parameters sent by ASP in ReturnUrl (using HTTP GET):
	paymentReason = Test Widget
	transactionDate = 1254987247
	buyerName = test sender
	recipientEmail = test-recipient@amazon.com
	referenceId = test-reference123
	paymentMethod = Credit Card
	operation = pay
	signatureMethod = RSA-SHA1
	signature = VirmnCtqA/A+s+H+SE7Oj8Ku7Lfay6OKkJgP/Q0hyQeaR6evI8Usokg698utW6xzJsiUudXm0KpmqiWM33o1aby3AOxZ
	qWUC//aMZPO9vdw1NWR5fOJ++8AR9BAfcUtTHWc2QOHa1UyJalqeMsHuQj2IqQCMmOAUHPFkHhwAZMS9Ifkkxjqczg4S0vK9FoO39rFY
	kReYdL9SvuFyj6byAnqd3D7i/lgw+6jXjAlM9MqYiisMLyCGk0IQsrux5VbiQgI9LiGqUThGh7o2XkEFWvmPlKFmdQVnLxN9RNOK4pwr
	ktbjgrBfVKZu1BBBXjfwwy9xzin0Kw5uNlCD2ReoZA==
	buyerEmail = test-sender@amazon.com
	transactionAmount = USD 1.1
	status = PS
	recipientName = Test Business
	transactionId = 14GPH3CZ83RPQ1ZH6J2G85NL1IO3KO8641R
	signatureVersion = 2
	certificateUrl = https://fps.sandbox.amazonaws.com/certs/090909/PKICert.pem

String to sign in signature version 2:

	GET\n
	yourwebsite.com\n
	/return.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=Credit%20Card&
	paymentReason=Test%20Widget&
	recipientEmail=test-recipient%40amazon.com&
	recipientName=Test%20Business&
	referenceId=test-reference123&
	signatureMethod=RSA-SHA1&
	signatureVersion=2&
	status=PS&
	transactionAmount=USD%201.1&
	transactionDate=1254987247&
	transactionId=14GPH3CZ83RPQ1ZH6J2G85NL1IO3KO8641R