New Product Development

Topics

Now that you have completed the tasks of sending Co-Branded service and Amazon FPS requests and processing the results, you are ready to start designing your own application. Most applications built for Amazon FPS will not be as simple as the example in this guide, so this section touches on a few more helpful pieces of information.

Which Parts of Amazon FPS Should You Use?

The sample requests and responses in this guide provide only a very narrow slice of Amazon FPS functionality. The full product is divided into the five Quick Start implementations mentioned earlier in the guide (see Introduction to Amazon Flexible Payments Service). The following table gives guidance on which Quick Start implementation to use depending on your type of business and use case. You might use more than one.

Domain Use Case Quick Start to Use
E-commerce

Selling physical (shippable) goods on your web site.

Amazon FPS Basic Quick Start

Magazines

Selling magazines or periodicals for a monthly subscription.

Amazon FPS Advanced Quick Start

Digital media and content

Selling digital goods or services on a pay-per-use basis. For example, selling MP3 songs on your web site or selling points for your game.

Amazon FPS Basic Quick Start

Digital media and content

Selling digital goods or services on with a monthly subscription. For example, music streaming or monthly digital report subscriptions.

Amazon FPS Advanced Quick Start

Digital media and content

Selling a prepaid balance upfront, tracking the usage, and deducting from the balance whenever the customer makes a purchase on your web site.

Amazon FPS Aggregated Payments Quick Start

Donations

Raising online donations for your non-profit organization.

Amazon FPS Basic Quick Start

Marketplace

Providing a marketplace where senders can pay multiple recipients.

Amazon FPS Marketplace Quick Start

Social networks

Enabling users on your social networks to pay each other. For example, collecting payments for meetings.

Amazon FPS Marketplace Quick Start

Social networks

Raising contributions for a project on your social network and charging a fee for it.

Amazon FPS Marketplace Quick Start

Online and hosted services

Tracking the usage of your customers and charging them periodically or when they reach a specific limit.

Amazon FPS Aggregated Payments Quick Start

All

Checking your account activity, transaction history, or account balance.

Amazon FPS Account Management Quick Start

All of the preceding Quick Start implementations use the same WSDL, but each one covers a different feature set. Likewise, you use different Co-Branded service APIs with each implementation to create different kinds of payment tokens. In this getting started guide, you created a single-use payment token; that is, a token that can be used once. Amazon FPS Advanced Quick Start, for example, offers multiple-use payment tokens, and Amazon FPS Aggregated Payments Quick Start offers prepaid and postpaid payment tokens.

Application Considerations

The Amazon Payments home page (payments.amazon.com) provides a user interface for senders and callers to get Amazon Payment accounts, view them, and to perform some actions with them, such as canceling purchases. Using the Amazon FPS API, you can also program these functions into your web site. Your application needs to make sure that actions your web site performs are in sync with the actions taken in the Amazon Payments user interface, and vice versa. Amazon Payments sends transaction notifications for actions taken in the Amazon Payments user interface and some actions executed by Amazon FPS web service requests. Your application needs to be able to receive these Instant Payment Notifications (IPN) and change your records accordingly. IPN is covered in all of the different Amazon FPS developer guides.

Your application needs to keep a database of sender information such as the sender's name, shipping information, and, to keep those values secure, sender login names and passwords. As you create a database of senders, you must store with each sender transaction the callerReference value that you generate and the transactionId Amazon FPS returns in each Pay and Reserve response. These identifiers enable you to implement the full range of Amazon FPS functionality, such as providing transaction status information.

The functionality you make available on your web site or in your application should be sender-focused. Common sender tasks (beyond paying for a purchase) include canceling a purchase, asking for a refund, and getting the status of an order. Although senders can go to the Amazon Payments web site to view this information, they typically expect your web site to also provide this functionality.

Not discussed in this guide is the order fulfillment side of your business. Because the order date and shipping date of products typically fall on different days, a common business practice is to charge a sender's payment instrument only upon product shipment. Remember that you need to update Amazon FPS regarding such events. In this case, you send a Settle request to charge the sender's payment instrument, causing Amazon FPS to initiate the transfer of money to the recipient. We recommend you implement this functionality in your order fulfillment software so that you never forget to send Amazon FPS a Settle request.

In this guide, you, the developer, also serve as the recipient of the money. Amazon FPS Marketplace Quick Start enables a different scenario in which you are neither the sender nor the recipient, but the caller that hosts the recipient's e-commerce store. For that service, you charge the recipient a fee. This unique feature available in Amazon FPS provides a range of application possibilities unavailable in other payment web services.

This guide describes how to redirect buyers to the Co-Branded UI where they authorize payment. You have the option of co-branding that UI with your company's logo. The value of co-branding the CBUI web pages is that your branding appears along with Amazon's at the top of the payment authorization web pages. This makes for a smoother transition between the shopping and payment authorization steps in the purchase. To co-brand the web pages, you must provide the URL of your company's branding in the Co-Branded service request.

All of these topics are covered in greater detail in the Amazon FPS developer guides. Links to the guides are provided in the table in Which Parts of Amazon FPS Should You Use? and in Related Resources.

Production Endpoints

After you have tested your applications using the sandbox, you can start using the production environment by changing the endpoints of the Co-Branded service and Amazon FPS requests to the following URLs:

  • Co-Branded service API— https://authorize.payments.amazon.com/cobranded-ui/actions/start

  • Amazon FPS API— https://fps.amazonaws.com/

[Note]Note

All transactions in the production environment require a real payment instrument (credit card, bank account, or Amazon Payments balance) and move real money.

Credentials for SOAP Requests

If you plan to use SOAP to make your Amazon FPS calls, then you need another set of credentials in addition to your AWS Access Key ID and Secret Access Key. These credentials are an X.509 certificate and corresponding private key, and you must associate the certificate with your AWS account.

[Tip]Tip

If you're already using SOAP and WS-Security with another AWS service, then you already have these credentials and can skip this section.

For more information about X.509 certificates, go to http://www.webopedia.com/TERM/X/X_509.html.

You can either have AWS generate the certificate for you (which automatically associates the certificate with your AWS account), or you can upload an existing certificate you already own to the AWS site.

To have AWS generate a new X.509 certificate for you

  1. Go to the Amazon Web Services web site at http://aws.amazon.com.

  2. Point to Your Account to display a list of options.

  3. Click Access Identifiers and log in to your AWS account.

  4. On the Access Identifiers page, click X.509 Certificates.

  5. Click Create New.

    You're prompted to confirm creation of the certificate.

  6. Click Yes to proceed.

    Your X.509 certificate is generated.

  7. Click Download Private Key File and securely store the file in a proper location on your system for future use.

    [Important]Important

    You can download the private key only once. If you misplace or lose the private key, you must generate a new one.

  8. Click Download X.509 Certificate and save the certificate to the same location as the private key.

If you already have an X.509 certificate that you'd like to use, you need to upload it to AWS. Note that you upload only the X.509 certificate and not the corresponding private key.

To upload your own X.509 certificate

  1. Go to the Amazon Web Services web site at http://aws.amazon.com.

  2. Point to Your Account to display a list of options.

  3. Click Access Identifiers and log in to your AWS account.

  4. On the Access Identifiers page, click X.509 Certificates.

  5. Click Upload.

  6. Follow the instructions on the subsequent pages to upload your certificate.

Additional Resources

You might find these additional resources helpful when you design your own application.

Resource

Description

Amazon FPS resources

The primary web page for information about building on Amazon FPS, which includes links to the WSDL, documentation, code samples, and more.

Developer Forums

A community-based forum for developers to discuss Amazon FPS and interact with other developers.