I worked and tested using the paypal sandbox system.
This is confusing; I created some test accounts. At the moment, I have created a form from my site. Buy Now Button.
It works as it should:
<form id="checkout" target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" value=" myemail@myaddres.com " name="business"> <input type="hidden" value="Order" name="item_name"> <input type="hidden" value="1000" name="amount"> <input type="hidden" value="50" name="tax"> <input type="hidden" value="SEK" name="currency_code"> <input type="hidden" value="namehere" name="first_name"> <input type="hidden" value="lastnamehere" name="last_name"> <input type="hidden" value="emailaddressaere" name="email"> <input type="hidden" value="addresshere" name="address1"> <input type="hidden" value="cityhere" name="city"> <input type="hidden" value="SE" name="country"> <input type="hidden" value="0" name="address_override"> <input type="hidden" value="http://www.mydomain.com/thanks" name="return"> <input type="hidden" value="http://www.mydomain.com/checkout" name="cancel_return"> <input type="hidden" value="uniqueid" name="invoice"> <input type="hidden" value="sale" name="paymentaction"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="charset" value="utf-8"> <input type="submit" value="Buy" /> </form>
I am sure (I think I am) that the HTML is correct (just the input should end in / ">)
OK, I can enter paypal and confirm the payment. Everything works fine until I confirm this, then weird things keep happening every time. Therefore, when I confirm the payment, this is what happens:
Your account information has changed. Either you clicked “Pay” more than once, but the initial transfer has already been made, or you just received the money. To check, review your history and make sure that you want to complete this transaction.
and
We are not able to process your request at this time. Please go back to the Store Tester account and try another option.
Now, after all this, it seems that the payment has not been made, but the fact is that the payment was sent to the "business email address". I just log in, but there I have to confirm the payment.
Why is this happening? Why is this not confirmed?
I just started with PayPal today. I fought with him all day (+ night). Now I just had to ask.
source share