46
Buyer to Seller direct payment with a commission to Site Owner.
There are website owners who may want payment gateway for e-commerce sites. Paypal supports Buy Now option ( Seller is website owner and Buyer is the user ).
What if Seller’s are also users? Paypal won’t support this workflow but Amazon FPS (Flexiable payment service ) has a solution.

Here is how it works:
Owner must create FPS account.
Developer must have AWS account (sandbox enviornment to test transaction)
Seller must have Amazon personal account and finally
Buyer must have Amazon business account.
With AWS or FPS you will get AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and sample script to test FPS.
In order to make Buyer to Seller direct payment with a commission to Site Owner keep following points in mind.
1. Authorize buyers through e-commerce using Recipient API to get recipient token id. Store it in database to keep track at the time of purchase.
2. Authorize sellers for the payment using Multi-Use token, to get Sender Token ID.
3. Make payment using InvokePay() method with recipient token set us Receiver Token ID.



