Amazon Simple Pay: "Subscription" Widget Signing Utility in PHP

Sample Code & Libraries>PHP>Amazon Simple Pay: "Subscription" Widget Signing Utility in PHP
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 PHP code sample to create a dynamic Amazon Simple Pay Subscription Button.

Details

Submitted By: Abhay@AWS
AWS Products Used: Amazon FPS
Language(s): PHP
License: Apache License 2.0
Created On: April 24, 2009 11:04 AM GMT
Last Updated: September 13, 2010 6:21 PM GMT
Download

This is a simple PHP code sample to create a dynamic Amazon Payments 'Subscription' widget

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 PHP version 5.1.1 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. Save this file in the htdocs folder of your Apache installation and open it in a browser
  5. Alternatively, you may tun the code sample as a PHP application
  6. The code sample will output the HTML for the 'Subscription' widget
  7. You can now integrate this code into your website
  8. Note: You cannot use your Amazon Payments Business Account as a buyer while testing your 'Subscription' Widgets. You should create a new Amazon Payments account which you can use as a buyer.
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.