How To Implement Paypal Recurring

Hi i am new to Yii and Paypal. i have to implement paypal recurring payment. I have created paypal developer account, bussiness account.

I have also downloaded many PHP classes which implement recurring. But i am unable to understand how it will work, how i can verify it using sandbox. Paypal documentation does not provide information about implementation.

i am using this class.

please somebody guide me about it. if there is any yii extenion then tell me about it too.

you will get example codes…search for it…its very simple…

Samples are located in the Services_PayPal\docs\examples directory

All example files return me this error.

<br />

<b>Warning</b>: require_once(Services/PayPal.php) [<a href=‘function.require-once’>function.require-once</a>]: failed to open stream: No such file or directory in <b>/home/gsv/public_html/php-sdk/Services_PayPal/docs/examples/request_base.php</b> on line <b>6</b><br />

<br />

<b>Fatal error</b>: require_once() [<a href=‘function.require’>function.require</a>]: Failed opening required ‘Services/PayPal.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in <b>/home/gsv/public_html/php-sdk/Services_PayPal/docs/examples/request_base.php</b> on line <b>6</b><br />

that is path issue…

please paste the paypal directory under protected/extensions

then set the paths

I have search many sites. According to my findings , i have to create an ipn listener where Paypal will post data. Then URL to that listener i will post in developer IPN simulator. i have implemented a listener, placed its URL in IPN simulator then i click the send button but it paypal returns following error.

[color="#FF0000"]IPN Delivery Failed:503 Service Temporarily Unavailable[/color]

My be it is because of the URL as i have placed localhost URL.

or try using this

I am already using this extension for express checkout. i think it does not support recurring payment.

It does not - you have to code that yourself. As far as I know, you can modify the form to include the necessary data for a recurring payment. In the past, I’ve modified it to checkout carts without too much difficulty.

Great!! I am just reading this post, I am searching for a simple example for a form that submits data to paypal through YII, did you use any extension?

Does anyone has found a way to do it?
I did install the following into the vendor folder:

  • paypal-checkout-sdk
  • paypalhttp

and directly from YII I was able to do one-time payments

Now I am getting confused in the PayPal site since there is no reference to do the same but using the recurring payments.

Just to clarify I know how to setup the plans and all that stuff both in the sandbox and in the PayPal production environment but cannot see how to do that from the YII section.

Anyone with enough knowledge to guide me?