Posted on Wednesday, 23rd September 2009 by Michael

PayPal Garage Sale Point of Sale system

So I am about to have a garage sale and want to accept credit cards so people can't say they don't have money so I search all over the internet and there is nothing in the form of a POS for paypal users. So what do I do I create a down and dirty one using a simple Batch file.

Check out the code below.

Title Yard Sale Pyapal Check Out
@echo off
cls
set /p ItemNo=Item No:
set /p ItemName=Item Name:
set /p Price=Price:
pause

echo ^<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"^>>Out.htm
echo ^<input type="hidden" name="cmd" value="_xclick"^>^<input type="hidden" name="amount" value="%Price%"^>>>Out.htm
echo ^<input type="hidden" name="business" value=" you@your.comThis e-mail address is being protected from spam bots, you need JavaScript enabled to view it "^>>>Ou
t.htm
echo ^<input type="hidden" name="item_name" value="%ItemName%"^>>>Out.htm
echo ^<input type="hidden" name="item_number" value="%ItemNo%"^>>>Out.htm
echo ^<input type="hidden" name="return" value="www.divepa.com/thanks.html"^>>>Out.htm
echo ^<input type="hidden" name="cbt" value="Continue"^>>>Out.htm
echo ^<input type="image" src="cart.jpeg" border="0" name="submit" alt="button"^>^</form^>>>Out.htm
echo ^<br^>^<br^> >>out.htm
echo You are purchasing item: %ItemName% for %Price% if you agree click the cart above and complete your transaction >>out.htm

pause
start /max "C:\Program Files\Internet Explorer\iexplore.exe" Out.htm

All you do is copy the above code into a notepad file and save the file as paypal.cmd then double click it and fill in the blanks. Make sure you change the email field first to your paypal email account.

Posted in Code | Comments (0)

Leave a Reply

*