Working with Amazon FPS to process credit card transactions is done through a workflow that involves several pieces. ​ How these pieces fit together is largely determined by the construction of your application. ​ Below we will review the general purpose of each FPS action type, but will rely on you to review and understand the Amazon FPS documentation to understand how each of these functions fit into your application.

+

===== Payment Authorization Request =====

+

Use this Amazon FSP action type to create a payment token, showing the user a popup that will allow them to enter payment information and authorize payments be processed. ​ This action returns a payment token to be used later.

+

===== Recipient Authorization Request =====

+

Use this Amazon FSP action type to create a recipient token, showing the user a popup that authorizes you to put money into their Amazon FPS account. ​ This action returns a recipient token to be used later.

+

===== Process Payment =====

+

Use this Amazon FPS action type to process a payment for a specific amount, using either a recipient or payment token.

+

===== Process Refund =====

+

Use this Amazon FPS action type to process a refund of a payment, using a payment token.

+

===== Check Transaction Status =====

+

Use this Amazon FPS action type with an Amazon FPS Transaction ID to check it's status. ​ Some payment methods take time to process, and even in the case of credit cards can sometimes be declined for a few hours before processing successfully.

+

===== Lookup Token =====

+

When you make an authorization request (payment or recipient) you send an identifier that is unique to the request. ​ If you need to lookup the resulting token, for error recovery needs for example, you can send that identifier to Amazon FPS to get the token.