Angell EYE Web Solutions Made Easy

Angell EYE PayPal Adaptive Payments CodeIgniter Library Demo

This library is written to reflect PayPal's documentation directly. It's very simple to use with a quick understanding of the way it's designed.

The follow sample demonstrates how to work with this library.

ConvertCurrency

This call is extremely straight forward and simply returns the converted currency values for the requested amount. The controller already has the following method included:

Run the code above and see the output.

Pay (Chained)

This is a simple demonstration of generating a Chained Payment with PayPal's Adaptive Payments system.

You will need to be signed in to your PayPal Developer Account in order for these sample calls to work. Just leave it logged in within a separate tab in your browser. You'll also need to create a sandbox buyer account to sign in so you can see the entire flow.

When you click the link below to run the code sample, you will be taken to a login at PayPal. It will only show a single receiver for the total amount because this is a chained payment, however, it will be split between all three receivers included in the request sample shown here.

Again, you'll need your own PayPal developer account and sandbox accounts to really be able to see exactly how all of this would look within each account, but the code sample shown accomplishes the goal accordingly.

Run the code above and see the output.