Using Paypal Express Checkout Digital Goods with Codeigniter

I am trying to implement a Paypal express order on the Codeigniter website.

I use mod rewrite to extract index.php from Codeigniter URLs, and so when Paypal makes a callback to my site with token = xxxx added to the end, I get 404 error.

The flow of events gets stuck when Paypal makes this callback to the website. A popup window appears, but just stays on "Loading ...".

Any help would be greatly appreciated.

EDIT: I just changed uri_protocol in the configuration file:

$config['uri_protocol'] = "PATH_INFO";

And now I can access the $ _GET variables, but the window that pops up will still not go beyond "loading ...".

+5
source share
1 answer

Use the CI Merchant library written by Adrian McNeill http://ci-merchant.org/

It not only supports Paypal Express, but also many other payment services.

In the test code provided by the library, it gives you an example of using PayPal.

+1
source

All Articles