คอนฟิก A2Billing ให้อินเตอร์เฟสกับ Paypal

Open Source Calling Card/Billing for Asterisk

คอนฟิก A2Billing ให้อินเตอร์เฟสกับ Paypal

โพสต์โดย voip4share » 10 ก.พ. 2010 11:26

บทความนี้ผมจะแนะนำวิธีการคอนฟิก A2Billing ให้อินเตอร์เฟสกับ Paypal นะครับ สำหรับท่านที่อยากให้ลูกค้าหรือเอเย่นต์เติมเงินผ่านเว็บไซต์ของ Paypal ได้

1. เปิดบัญชีกับ Paypal
ท่านผู้ซึ่งเป็นเจ้าของบริการ Calling Card, Callback จะต้องเปิดบัญชีกับ Paypal นะครับ และแนะนำให้เปิดแบบ Premier เพราะสามารถรับเงินได้จากทั้ง Paypal Account และ Credit Card ได้ ส่วนผู้ที่เป็น Agent หรือ Customer นั้นไม่จำเป็นต้องเปิดบัญชีกับ Paypal นะครับเพราะสามารถเลือกได้ว่าจะโอนเงินจากบัญชี Paypal หรือจากบัตรเครดิต รายละเอียดวิธีการสมัครบัญชีกับ Paypal ผมขออนุญาตไม่พูดถึงนะครับ

2. คอนฟิก Web Server ให้รองรับ SSL
วิธีการคอนฟิก Apache Web Server ให้รองรับ SSL แบบ Self Signed Certification

3. คอนฟิกออปชันในการคอนเน็คกับ Paypal
2.1 เข้าเว็บ Admin ของ A2billing แล้วคลิ๊กที่ "SYSTEM SETTINGS" -> "Global List"
2.2 ที่ "SELECT GROUP" เลือก "epayment_method" แล้วคลิ๊ก "SEARCH"

ให้เปลี่ยน IP Address เป็นไอพีของเครื่องเซอร์เวอร์นะครับ ส่วน /customer/ และ /agent/Public/ ก็ให้เปลี่ยนตามจริง

enable = Yes
http_server =
https_server = https://192.168.4.55
http_cookie_domain = 192.168.4.55
https_cookie_domain = 192.168.4.55
http_cookie_path = /customer/
https_cookie_path = /customer/
dir_ws_http_catalog = /customer/
dir_ws_https_catalog = /customer/
enable_ssl = Yes
http_domain = 192.168.4.55
dir_ws_http = /customer/
purchase_amount = 100:200:300:500:1000:3000:5000
item_name = Credit Purchase
currency_code = thb
paypal_payment_url = https://www.paypal.com/cgi-bin/webscr
paypal_verify_url = ssl://www.paypal.com
authorize_payment_url = https://secre.authorize.net/gateway/transact.dll
story_name = VoIP Co., Ltd.
transaction_key = asdf1212fasd121554sd4f5s45sdf
moneybookers_secretword =
purchase_amount_agent = 100:300:500:1000:5000:10000
charge_paypal_fee = No
plugnpay_payment_url = https://pay1.plugnpay.com/payment/pnpremote.cgi
http_server_agent =
https_server_agent = https://192.168.4.55
https_cookie_domain_agent = 192.168.4.55
http_cookie_path_agent = /agent/Public/
https_cookie_path_agent = /agent/Public/
dir_ws_http_catalog_agent = /agent/Public/
dir_ws_https_catalog_agent = /agent/Public/


4. ตั้งค่าเมนู "BILLINGS" ในเว็บ A2Billing Admin
4.1 คลิ๊ก "BILLINGS" -> "Payment Methods"

a2b-paypal-00-small.png
A2Billing and Paypal
a2b-paypal-00-small.png (33.25 KiB) เปิดดู 2483 ครั้ง


4.2 คลิ๊ก "View Details" ในบรรทัดเดียวกับ Paypal
a2b-paypal-01.png
Paypal Options
a2b-paypal-01.png (8.86 KiB) เปิดดู 2483 ครั้ง

Enable Paypal Module เลือก True
E-Mail Address ใส่อีเมล์ที่ลงทะเบียนไว้กับ Paypal

5. ปิด Payment ที่ไม่ได้ใช้งาน
ถ้าเราไม่ต้องการให้ Agent และ Customer เติมเงินผ่านระบบ Online ได้ เราควร Disable นะครับเพื่อไม่ให้ Agent และ Customer มองเห็น วิธีการ Disable เป็นดังนี้
5.1 คลิ๊ก "BILLINGS" -> "Payment Method"
5.2 คลิ๊ก "View Details" บรรทัดเดียวกับ Payment ที่ต้องการจะปิด
5.3 คลิ๊ก "False"
a2b-paypal-02.png
Disable Unused Payment Method
a2b-paypal-02.png (5.03 KiB) เปิดดู 2483 ครั้ง

5.4 คลิ๊ก "UPDATE"

6. ทดสอบเข้าเว็บ Agent
6.1 ล๊อกอินเข้าเว็บ Agent
http://x.x.x.x/agent

6.2 คลิ๊ก "MY ACCOUNT" -> "Account Information"
a2b-paypal-03.png
Agent Information
a2b-paypal-03.png (29.96 KiB) เปิดดู 2483 ครั้ง

รูปสัญลักษณ์ "Paypal" สำหรับให้ Agent เติมเงินโดยการโอนเงินจากบัญชี Paypal ของตนเอง
ปุ่ม "BUY NOW" สำหรับให้ Agent เติมเงินโดยการตัดบัญชี Credit Card ของตนเอง ซึ่งการชำระเงินด้วย Credit Card นี้นะครับ Agent ไม่ต้องมีบัญชีกับ Paypal ก็ได้
voip4share
Administrator
 
โพสต์: 656
ลงทะเบียนเมื่อ: 18 พ.ย. 2009 11:26
ที่อยู่: รามคำแหง กรุงเทพฯ

ย้อนกลับไปยัง A2Billing - Calling Card & Billing Application

ผู้ใช้งานขณะนี้

่กำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และ บุคคลทั่วไป 1 ท่าน