Payment Token Types

Every Amazon FPS payment transaction requires a payment token. When someone successfully completes the CBUI web pages, the Co-Branded service creates a payment token. A payment token represents purchase information, including the amount of the purchase, the buyer, and the authorization to use the token as a means of making a purchase. Before you can initiate any Amazon FPS payment transaction, such as a Pay request, you must obtain a token.

There are a number of different kinds of payment tokens and each one has different characteristcs. Each Amazon FPS Quick Start implementation provides a set of token types. This Quick Start covers the following:

Sender and Recipient Token Associations

Buyers, and, in Amazon FPS Quick Start implementations that support the marketplace scenario, merchants, can go through the CBUI to create tokens. Each one does so for a different purpose. The buyer uses a Buy Now button to go through the CBUI to authorize a purchase with a sender token. The recipient uses a Register Now button to authorize the payment of marketplace fees to you for hosting his or her e-commerce store. (For information on marketplace applications, see Amazon Flexible Payments Service Marketplace Quick Start Developer Guide.)

In both cases, it is your web site that implements the button that redirects the person to the CBUI.

All of the token types can be associated with a sender, that is, a buyer who is authorizing a purchase. So, there can be a sender single use payment token, sender recurring use payment token, sender postpaid payment token, and so on. This guide sometimes shortens these names to sender token. The value returned in TokenId from the CBUI is used as the value for SenderTokenId in subsequent Amazon FPS requests.

The token types that can be used in the marketplace scenario can also be associated with a recipient. In this scenario, you host the e-commerce store of a merchant, called a recipient (the person who receives the money). You charge the recipient a fee (called a marketplace fee) for hosting their e-commerce store and brokering the money transactions. On your web site, you implement a button that makes the recipient go through the CBUI and authorize the payment of marketplace fees for your service. The value returned by the CBUI in the tokenId parameter is used as the value for RecipientTokenId in subsequent Amazon FPS requests. The following token types can be associated with a recipient: recurring-use, multiple-use, and single-use.

Token Creation

The Co-Branded service creates a token in two cases: when a buyer successfully completes the CBUI web pages, thereby authorizing a purchase, and when a merchant authorizes the payment of marketplace fees to you, as shown in the following figure. The CBUI returns to your web site references to the created tokens in the tokenID parameter. This value is either used as a SenderTokenID or RecipientTokenID (depending on the implementation) in subsequent Amazon FPS requests.

The token type you create depends on the parameters included in your Co-Branded service request. This guide presents the API for each token type available in this Amazon FPS Quick Start. For more information about sending a Co-Branded service request, which can result in token creation, see Getting Authorization.