
7
PayPal Integration
In this chapter, we will cover:
f Preparing the ground
f Working with PayPal APIs
f Making payment to a PayPal account
f Receiving payment from a PayPal account
f Integrating PayPal Instant Payment Notication (IPN)
Introduction
PayPal is one of the most popular and convenient ways to make a payment to someone
who owns a PayPal account. PayPal provides the integration with the shopping cart (using
their different checkout mechanisms) as well as the integration with the back-ofce (using
their APIs and IPN). In Chapter 6, VirtueMart Integration, we looked at the integration of
ADempiere with the Joomla! VirtueMart shopping cart, which provides integration with the
PayPal checkout. In this chapter, we will focus on the back-ofce integration of PayPal with
ADempiere to process payments online.
As we all may know that, in order to transact with PayPal, one needs to have a PayPal account.
PayPal offers different types of accounts which serve a specic purpose like a buyer account
or a seller account, and so on. While we are building the integration layer, we will have to go
through many cycles of testing and verication. Doing this in the production environment is
next to impossible to imagine, as it involves real accounts and real transactions (and hence
charges). To overcome this stumbling block, we will be using PayPal's Sandbox infrastructure,
which is intended for developer use. This infrastructure facilitates the building and the testing
of the integration code and once it is tested, thoroughly, then all it requires is a couple of
changes, like, replacing the sandbox access detail with the production access detail, and the
same code will work in the production environment as well.
Down l o a d f r o m Wow ! e B o o k < www. w o w e b o o k . com>