Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You cannot reliably guarantee that. In general in these scenarios, you could do a server-side check with the payment gateway to see if the <em>transaction id</em> (or whatever is passed back to you) is valid, and that the amount was successfully paid.</p> <p>You should consider checking out PayPal's <a href="https://www.paypal.com/ipn" rel="nofollow noreferrer">Instant Payment Notification</a> service and implement a listener for that. PayPal has <a href="https://cms.paypal.com/us/cgi-bin/?&amp;cmd=_render-content&amp;content_ID=developer/library_code_ipn_code_samples" rel="nofollow noreferrer">some sample code</a> for that in various languages. This is a brief overview of the IPN protocol:</p> <ol> <li><p>PayPal sends your IPN listener a message that notifies you of the event (a received payment, for example).</p></li> <li><p>Your listener sends the complete unaltered message back to PayPal; the message must contain the same fields in the same order and be encoded in the same way as the original message.</p></li> <li><p>PayPal sends a single word back, which is either <code>VERIFIED</code> if the message originated with PayPal or <code>INVALID</code> if there is any discrepancy with what was originally sent.</p></li> <li><p>Once the IPN is verified, you may then unlock the features/options that your users paid for, as <a href="https://stackoverflow.com/questions/4059409/if-user-didnt-come-from-here-then-do-not-process-how/4059422#4059422">@cHao suggested in the other answer</a>.</p></li> </ol> <p>Further reading:</p> <ul> <li><a href="https://cms.paypal.com/cgi-bin/marketingweb?cmd=_render-content&amp;content_ID=developer/e_howto_admin_IPNIntro" rel="nofollow noreferrer">PayPal Integration Center: Introducing IPN</a></li> </ul>
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    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