Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting PayPal return URL and making it auto return?
    primarykey
    data
    text
    <p>This is a follow up question to: <a href="https://stackoverflow.com/questions/7615964/php-easy-way-to-start-paypal-checkout/7616011">PHP: Easy way to start PayPal checkout?</a></p> <p>So, my problem is that I am specifying the return url. However, after paying with PayPal, I end up at a a screen that says:</p> <blockquote> <p>You just completed your payment. XXXX, you just completed your payment. Your transaction ID for this payment is: XXXXXXXXXXXXX.</p> <p>We'll send a confirmation email to XX@XXXX.com. This transaction will appear on your statement as PAYPAL.</p> <pre><code>Go to PayPal account overview </code></pre> </blockquote> <p>I need it to not show this screen and go directly to the return URL. I have: </p> <ul> <li>Set the "return" variable</li> <li>Set the "rm" variable to: 2 (which according to the guide = "<strong>the buyer’s browser is redirected to the return URL by using the POST method, and all payment variables are included</strong>")</li> </ul> <p>In fact, here's my whole form:</p> <pre><code>&lt;form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr"&gt; &lt;input type="hidden" value="_xclick" name="cmd"&gt; &lt;input type="hidden" value="onlinestore@thegreekmerchant.com" name="business"&gt; &lt;!-- &lt;input type="hidden" name="undefined_quantity" value="1" /&gt; --&gt; &lt;input type="hidden" value="Order at The Greek Merchant:&amp;lt;Br /&amp;gt;Goldfish Flock BLG&amp;lt;br /&amp;gt;" name="item_name"&gt; &lt;input type="hidden" value="NA" name="item_number"&gt; &lt;input type="hidden" value="22.16" name="amount"&gt; &lt;input type="hidden" value="5.17" name="shipping"&gt; &lt;input type="hidden" value="0" name="discount_amount"&gt; &lt;input type="hidden" value="0" name="no_shipping"&gt; &lt;input type="hidden" value="No comments" name="cn"&gt; &lt;input type="hidden" value="USD" name="currency_code"&gt; &lt;input type="hidden" value="http://XXX/XXX/XXX/paypal/return" name="return"&gt; &lt;input type="hidden" value="2" name="rm"&gt; &lt;input type="hidden" value="11255XXX" name="invoice"&gt; &lt;input type="hidden" value="US" name="lc"&gt; &lt;input type="hidden" value="PP-BuyNowBF" name="bn"&gt; &lt;input type="submit" value="Place Order!" name="finalizeOrder" id="finalizeOrder" class="submitButton"&gt; &lt;/form&gt; </code></pre> <p>Any idea how I can get it to automatically go back? Alternatively, how do I get the result of the payment back to my website so I can update the database? What is IPN?</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.
 

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