2008年12月18日星期四

RE: [fw-mvc] Paypal integration

Hello,

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,

The site I am working on has a credits system, where a member can purchase/buy credits. Once bought the credits get added to the members "credits" column in the user table.
I'd like to use paypal to process the payment.
Has anyone integrated paypal with a Zend framework application. Have you any thoughts on how to go about achieving this.
I have no experience with paypal neither have I done any application which accepts payments, before this :)
All help/sample code/reference material is appreciated.

-R

P.S. The final application will initially run on a shared host, so all thoughts or experiences on security is also appreciated.

没有评论: