I have a Paypal account with set subscription button on it. After a subscription is set by a buyer I am sending him to a receipt page. On this page I need to retrieve variables from Paypal to update by database. * form is working * subscription saved on Paypal * buyer correctly redirected to receipt page but variable are not retrieved. here is what I have tried so far starting from form content: <input name="cmd" type="hidden" value="_xclick-subscriptions"> <input name="business" type="hidden" value="mybusinessname"> <input name="lc" type="hidden" value="IE"> <input name="item_name" type="hidden" value="Monthly Subscription"> <input name="no_note" type="hidden" value="1"> <input name="no_shipping" type="hidden" value="1"> <input name="a1" type="hidden" value="0.00"> <input name="p1" type="hidden" value="1"> <input name="t1" type="hidden" value="M"> <input name="src" type="hidden" value="1"> <input name="a3" type="hidden" value="1.50"> <input name="p3" type="hidden" value="1"> <input name="t3" type="hidden" value="M"> <input name="currency_code" type="hidden" value="EUR"> <input name="bn" type="hidden" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted"> <input name="custom" type="hidden" value="test_value"> <input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" type="image"> <img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1"> Instant Payment Notification (IPN) details on Paypal are enabled and point to: https://www.mydomain/payments/index.php IPN history shows that notifications from Paypal are correctly sent to Notification URL (above) but the receipt page showed Error Undefined index: custom To get the custom variable I tried GET, POST and even REQUEST method using something like <?php echo $_GET["custom"]; ?> <?php echo $_POST["custom"]; ?> Then I tried <?php if (isset($_POST['custom'])) { $custom_display = $_POST['custom']; }?> But this results in: Undefined variable: custom_display All I need is to get custom variable. I am guessing that I am doing something wrong, but after many hours of searching for an answer and trying different settings (e.g. sending dynamically notification url within the form, changing settings in paypal, using different urls etc) nothing seems to be working for me and I am stuck Any help would be greatly appreciated!
... View more