Demonstrates how to construct and sign an Amazon Simple Pay form. It also demonstrates how to validate the Instant Payment Notification (IPN) sent to your web site and validate the signature for the IPN returned from Amazon SimplePay.
- 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 ASP.NET version 2.0 or higher installed.
Setting up the Sample
- Unzip the sample.
- Edit PayNowWidgetUtils.cs file
- Enter your AWS Access Key ID
- Enter your Secret Access Key
- Enter the path to the log file used to record IPNs (this file will need write permissions on your server)
- Edit default.aspx.cs and enter values for:
- A customer clicks on your Amazon SimplePay button.
- The customer is redirected to the co-branded user interface pipeline where they enter their payment credentials.
- After the customer completes the pipeline they are redirected back to your website.
- When the transaction completes, Amazon SimplePay will send an IPN to your IPN URL.
- The page at the IPN URL receives data from an HTTP POST.
- Use the PayNowWidgetUtils class to validate the IPN.