Page 1 of 1

Problem while using PAYPAL recurring Payment

Posted: Tue Aug 26, 2008 7:50 am
by sanju
Hi all,

I am currently working on a social networking site in which payment module is done with paypal IPN(recurring method). In the site,for the full access of the site functionality the users should have to make the payment (recursive).

I have tested the recursive payment in sandbox and i was successfully subscribed.
After subscription in the site there is an option to change the subscription where the members can upgrade or degrade the subscription package.

When i tried to do the modification i gave the following in the code

<input type='hidden' name='modify' value='2'>
Where this is to modify the current subscription, but when i made the subscription through paypal i'm not getting any response in my notify page, so that when ever a member modifies the subscription it does not return to my site from paypal this is causing problem in my site.

I'm attaching the code below...

This is an important project for me and I want to solve it soon.

Any help will be greatful

Cheers

<form action='https://www.sandbox.paypal.com/' method='post' name='paymentfrm'>
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="rm" value="2" />

<? if($additional == 1)
{ ?>
<input type="hidden" name="a1" value="0">
<input type="hidden" name="p1" value="<?=$add_day?>">
<input type="hidden" name="t1" value="D">
<? }?>
<? if($_REQUEST['change_sub'] == 1)
{ ?>
<input type="hidden" name="modify" value="2" />
<? }?>
<input type="hidden" name="a3" value="<?=$order_tot_price?>">
<input type="hidden" name="p3" value="<?=$months?>">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<input type="hidden" name="business" value="xxx@xx.com" />
<input type="hidden" name="item_name" value="subscription" />
<input type="hidden" name="item_number" value="<?=$item_number?>" />
<input type="hidden" name="notify_url" value="<?=$return_not;?>" />
<input type="hidden" name="return" value="<?=$return;?>" />
<input type="hidden" name="cancel_return" value="<?=$return_cancel?>" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="test_ipn" value="1" />
<input type="hidden" name="custom" value="<?=$change;?>" />
</form>

Re: Problem while using PAYPAL recurring Payment

Posted: Tue Aug 26, 2008 12:39 pm
by ghurtado
Don't you have to tell paypal what URL to return your users to after they are done with paypal.com?


PS: use code tags around your code