Simple Machines Community Forum

General Community => Scripting Help => Topic started by: brianjw on November 16, 2007, 07:24:45 PM

Title: Treasury and Paid Subscriptions (IPN) ---
Post by: brianjw on November 16, 2007, 07:24:45 PM
I have both and want to have both the Treasury and the Paid Subscription mods on my website. However, paypal only allows you to enter one IPN address. Does anyone know if they can test both the mods and somehow combine it all into one?

Thanks,
brianjw
Title: Re: Treasury and Paid Subscriptions (IPN) ---
Post by: vbgamer45 on November 16, 2007, 08:52:35 PM
paypal supports the notify_url property in the html form for paypal to allow more than one ipn location.
Title: Re: Treasury and Paid Subscriptions (IPN) ---
Post by: brianjw on November 17, 2007, 12:07:42 PM
Notify_url property? - All I know is they both ask me to login to my paypal and enter the IPN address that goes with the mod but paypal only allows one IPN.
Title: Re: Treasury and Paid Subscriptions (IPN) ---
Post by: vbgamer45 on December 12, 2007, 02:34:35 PM
Inside the paypal form code that is generated you would place the notify url property this can not be set if you are using encrypted paypal buttons.

Just change the value to your ipn location

<input type="hidden" name="notify_url" value="http://www.smfhacks.com/storedemo/storeipn.php" />


Then add it to the paypal form code.

Simple paypal form code example do not use since it is going to paypal's sandbox mode

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="notify_url" value="http://www.smfhacks.com/storedemo/storeipn.php" />
<input type="hidden" name="business" value="youremailhere">
<input type="hidden" name="item_name" value="test">

<input type="hidden" name="item_number" value="4">
<input type="hidden" name="amount" value="1">
<input type="hidden" name="shipping" value="0">
<input type="hidden" name="no_shipping" value="1">


<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">


<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
</form>
Title: Re: Treasury and Paid Subscriptions (IPN) ---
Post by: brianjw on December 12, 2007, 04:07:34 PM
Thanks. :)