Using Paypal Express Checkout digital goods with Codeigniter
Use the CI Merchant library written by Adrian Macneil http://ci-merchant.org/
It not only supports Paypal Express, but many other payment services.
In the test code provided with the library, it gives you an example of how to use PayPal.