Paypal integration in Zend Framework will be just as simple or just as complex as any other web application. Overall, working with paypal is not that bad, though.
I'm actually surprised that ZF doesn't have a component for this. It looks like there's a proposal that's been sitting in the queue for a year now, though:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_PayPal+-+Shahar+Evron
PayPal works by making a sequence of http calls to their NVP (Name-Value Pair) API. In a jist, you make a request to get a token, then use the token to start the payment process. The client is redirected to paypal where they perform the checkout. Once they're done, they're redirected to your site. Your site then calls PayPal's API again to retreive order information.
That's for express checkout. The process varies slightly for other services.
--
A.J. Brown
Zend Certified PHP Engineeer
http://ajbrown.org | http://ajbrown.org/blog
Hi, |
没有评论:
发表评论