Create paypal “Buy Now” button
目前是打算用 dynamically generate html 的方式來實作,這樣做的好處為不用上paypal 網站去建立button. 另外我希望建立的button 是客制化樣子,同時根據客戶的需求來產生不同的金額 網路上查到可利用php 來實作的方式: original url: http://stackoverflow.com/questions/5348761/automatically-create-buy-now-button-paypal <?php echo ‘ <form name=”_xclick” action=”https://www.paypal.com/cgi-bin/webscr” method=”post”> <input type=”hidden” name=”cmd” value=”_xclick”> <input type=”hidden” name=”business” value=”me@mybusiness.com”> <input type=”hidden” name=”currency_code” value=”USD”> <input type=”hidden” name=”item_name” value=”Teddy Bear”> <input type=”hidden” name=”amount” value=”12.99″> <input type=”image” src=”http://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif” border=”0″ name=”submit” alt=”Make payments with PayPal – it\’s fast, free and […]
Read More →