ทำเองก็ได้เหรอครับ แล้วเราต้องทำอย่างไร ช่วยอธิบายขั้นตอนการทำหน่อยได้ไหมครับ :'(
สร้างไฟล์ html ในโฮสต์มาสักไฟล์ ตัวอย่างชื่อไฟล์ donation.html ใส่โค้ดนี้ลงไป
โค้ดนี้เป็นแบบ fixed จำนวนเงินน่ะครับ คือ ให้เค้าบริจากตามที่เรากำหนด
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Paypal Donations Sample</title>
</head>
<body>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business"
value="ใส่อีเมล์บัญชี paypal ของคุณ">
<!-- Specify a Donate button. -->
<input type="hidden" name="cmd" value="_donations">
<!-- Specify details about the contribution -->
<input type="hidden" name="item_name" value="ใส่ชื่อสินค้า/บริการของคุณ เช่น Donate to บลาๆๆๆๆ รองรับเฉพาะภาษาอังกฤษ">
<input type="hidden" name="item_number" value="Fall Cleanup Campaign">
<input type="hidden" name="amount" value="ใส่จำนวนเงินที่จะให้เค้าบริจากให้เรา">
<input type="hidden" name="currency_code" value="USD">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1" src="https://www.paypal.com/en_US/i/scr/pixel.gif" >
</form>
</body>
</html>
หากต้องการให้เค้ากรอกจำนวนเองได้ก็แก้ตรง
<input type="hidden" name="amount" value="ใส่จำนวนเงินที่จะให้เค้าบริจากให้เรา">
ให้เป็น
<input type="text" name="amount">
เสร็จครับ