Amazon Simple Pay: Return URL validation Utility in Java

Sample Code & Libraries>Java>Amazon Simple Pay: Return URL validation Utility in Java
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

This is a simple Java code sample to validate the return url

Details

Submitted By: Abhay@AWS
AWS Products Used: Amazon FPS
Language(s): Java
License: Apache License 2.0
Created On: May 13, 2008 12:04 PM GMT
Last Updated: February 5, 2009 3:14 AM GMT
Download
Release Date: 2008-05-13

Prerequisites

  • You must have an Amazon Payments Sandbox Business Account.
  • You must have an Amazon Web Services developer account.
  • You must use the same email address and password for your Amazon Payments Business Account and your Amazon Web Services developer account.
  • You must have Java version 1.5 or later installed

Using the Sample

  1. Sign into your Amazon Web Services developer account and retrieve your Access Key ID and Secret Access Key from here.
  2. Replace the value of the accessKey constant in the code sample with your Access Key ID
  3. Replace the value of the secretKey constant in the code sample with your Secret Access Key
  4. Replace the value of the strReturnUrl variable in the code sample with your return url
  5. Run the code sample as a Java application
  6. The code sample will validate the return url and will print the validation result on the Console
  7. You can now integrate this code into your website
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.