Topics
This section explains a simple payment transaction using Amazon FPS. The sequences of events in a payment transaction are:
You (caller) need three compatible tokens (sender, caller, and recipient) to execute a Pay call. The GateKeeper constructs in the tokens must be compatible with each other.
You can use the InstallPaymentInstruction operation to create a caller token for your account. This is a one-time process. Depending on your role in the transaction, you should also install a recipient token or a sender token on your account using the InstallPaymentInstruction operation.
To acquire a recipient token, you must redirect the recipient to the Recipient Token installation pipeline. This is a one-time process for a given merchant. You must store the token Id returned by Amazon FPS. You can skip this if you are a recipient.
To acquire the sender token, you must redirect the sender to the single-use or multi-use token or recurring tokeninstallation pipeline. This is done for every purchase made by a sender. You must capture the TokenId returned by Amazon FPS. This TokenId is used as a handle to the sender's Amazon Payments account.
You can now use the three tokens as inputs to the Pay operation to execute a payment transaction.
![]() | Note |
|---|---|
The sender and recipient token used in the same payment transaction cannot be installed on a same account. |