News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Eran Galperin's Blog:
Breaking Down The PayPal API
April 25, 2011 @ 09:50:54

In a recent post Eran Galperin takes a look at the PayPal API and breaks it down into smaller, easy to digest chunks to show you how to you can implement it in your application. Be warned, though - he mentions that it's the "among the worst API he's ever had to deal with" for several reasons.

PayPal is the most popular platform for receiving online payments. The relative ease of opening a PayPal account and receiving payments compared to opening a merchant account for a traditional payment gateway is the number one reason, and another is the comprehensive API they provide for their payment services. [...] There doesn't seem to be any better alternatives currently, so hopefully this guide will help ease the pain for some of you out there taking your lumps working the API into your applications.

Eran starts with a look at some of the different payment options, express, direct, recurring and mass, and what they're good for. From there, it's off to the code with his tool of choice being curl to make it simpler to make requests with headers, content and fetch the response message. He's put together a little custom function to make it easier to reuse. As an example, he shows how to make an Express Checkout request by grabbing a token and redirecting to the PayPal site for handling.

0 comments voice your opinion now!
paypal api connection tutorial payment soap request curl


blog comments powered by Disqus

Similar Posts

Jani Hartikainen's Blog: Zend_Acl part 2: different roles and resources, more on access

Matt Stauffer: Introducing Laravel Homestead 2.0

DevShed: Introducing Mediator Classes in PHP 5

ServerGrove Blog: Deploying Symfony2 Projects on Shared Hosting with Capifony

Giulio Pons' Blog: Facebook Connect Tutorial


Community Events

Don't see your event here?
Let us know!


library podcast interview api version list series community extension language laravel introduction unittest example php7 release framework laravel5 opinion voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework