How to accept payments via Ripple on a website A web search led to Ripple.com.

Is it possible to add the payments via Ripple payment to an e-commerce website?
Where can i find source code to implement such Ripple payments?

For example, there are few websites which offer payment via Ripple such as PrivateInternetAccess.
There are some existing sources of information for merchants wishing to use Ripple:


Brief introduction and overview of Ripple for merchants
Merchant's section/pages on the Ripple wiki


If you are looking for something pre-implemented and easy to add to an existing automated web commerce check-out page, there isn't much available along those lines at the moment. Ripple is still in beta and the server and client code still appear to be the focus of attention. However, there has been a recent small bounty offered for the community to develop shopping cart plug-ins that use Ripple.

It's easier for sites that have a manual check-out process as they can just add a Ripple URI for customers to use and the merchant can manually check for received payments with the existing Ripple client (or use a third party tool such as wasipaid).

The basic process for a merchant to use Ripple is:


Create a Ripple address to receive funds (one time setup).
Create payment paths in Ripple for the funds you wish to receive (e.g. trust a gateway for USD or EUR, etc) (one time setup).
Supply a Ripple URI, possibly with a nice "Pay via Ripple" button that customers can use to initiate Ripple payments with their Ripple client. This can use a unique "destination tag" and/or "invoice ID" to distinguish individual Ripple payments. The Ripple client will offer the customer payment options using whatever assets they have for which it can find a payment path.
Manually or automatically watch for updates to the Ripple ledger to detect when payments are made. Make sure to handle partial payments (e.g. update a balance payable field) and to handle over-payments (e.g. return the excess, since Ripple payments are non-reversible and a reverse path may not exist for the currency being used this can be non-trivial). This is the "big" step where automation or plug-ins would be helpful, especially in handling all the corner cases.
Release/ship the thing being sold.
Periodically extract the received funds via Ripple, e.g. withdraw your balance in Ripple through a gateway into a bank account. Alternative, use the funds within Ripple.