Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If the ID you refer to is a unique reference that you use, then pass this back and forth between Paypal and your site using the <code>item_number</code> element.</p> <p>Set the ID in the HTML form you show to your customer and note you can also specify 3 URLs:</p> <pre><code>&lt;input type="hidden" name="item_name" value="Box of stuff"&gt;&lt;/input&gt; &lt;input type="hidden" name="item_number" value="12345"&gt;&lt;/input&gt; &lt;input type="hidden" name="return" value="http://www.blah.com/paypal_thanks.asp"&gt;&lt;/input&gt; &lt;input type="hidden" name="notify_url" value="http://www.blah.com/paypal_callback.asp"&gt;&lt;/input&gt; &lt;input type="hidden" name="cancel_return" value="http://www.blah.com/paypal_cancel.asp"&gt;&lt;/input&gt; </code></pre> <p>Where I have used "paypal_callback.asp" above, this overrides the IPN link which you can set up when you log into Paypal and edit your settings. So this value is optional.</p> <p>The scrpt paypal_callback.asp (assuming written in ASP) can then just say: </p> <pre><code>iAdvertId = Request.Form("item_number") </code></pre> <p>Note that this page is not the one shown to the user! It is hit by Paypals servers behind the scenes. The annoying thing is that paypal_callback.asp will not get called by Paypal immediately. It might be 3 days later...or they might hit it a month later to retract a payment.</p> <p>The customer will get redirected to either paypal_thanks.asp or paypal_cancel.asp in my example. These pages will not be passed a form or querystring, so the only way to get hold of the number you places in <code>item_number</code> is to also store it in a cookie BEFORE the user submits the form to purchase.</p> <p>When you get the email from Paypal, the <code>item_number</code> will be mentioned in the subject line, and within the mail body too (on the end of the Description line).</p> <p>It is also possible to set additional information in custom fields. The <a href="https://cms.paypal.com/us/cgi-bin/?&amp;cmd=_render-content&amp;content_ID=developer/e_howto_admin_IPNIntro" rel="nofollow noreferrer">Paypal documentation</a> details how to do this, and you can test it with their IPN simulator in the <a href="https://www.sandbox.paypal.com/" rel="nofollow noreferrer">sandbox</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload