About the library

Before you begin

Extract the contents of amazon-fps-2010-08-28-php5-library.zip to a folder. The folder "amazon-fps-2010-08-28-php5-library" will be created. This folder will be referred to as <ROOT> from this point onwards. This folder should contain the following sub-directories:

Prerequisites

Configuration

  1. Update the keys required to make the API call. This is one time activity and should be same for all APIs
  2. Update the FPS/CBUI endpoints (only required for sandbox environment, for prodouction no changes are required)

Steps to make a payment

Making a payment involves two parts. First, you obtain a payment authorization from buyers by redirecting them to co-branded pages hosted by Amazon FPS. When buyers return to your web site, you receive a payment authorization(also called a sender token) as part of the return URL. Second, you use this payment authorization or sender token in a 'Pay' API call to make a payment.

Steps to get authrorization from buyer

  1. Setup an app server at your side to receive HTTP redirect from Cobranded UI.
  2. Get the authorization from the buyer
  3. Steps to make a payment

Related resources

More about Amazon FPS
Documentation
Code samples
Contact us for technical issues

Comments, Questions or Feedback

If you have any comments, questions or feedback on the library, please start discussion here (Amazon FPS forum).