Hi to all.
Suppose that your A2Billing system is installed in the following directory:
for Admin Web User Interface:
/var/www/html/A2Billing_UI
for Customer Web User Interface:
/var/www/html/A2BCustomer_UI
And that the ipn_res.php is available in the following directory:
/var/www/html/A2Billing_UI/paypal/ipn_res.php
First, modify the epayment_method section in your a2billing.conf.
Code:
[epayment_method]
enable = yes
; Enter your HTTP Server Address (Note: Should not be empty for productive servers)
http_server = "http://www.<yourdomain>.com"
; Enter your Secure Server Address (Note: Should not be empty for productive servers)
https_server = "https://www.<yourdomain>.com"
; Enter your Domain Name or IP Address (e.g. yourdomain.com or 26.63.165.200)
http_cookie_domain = <yourdomain.com>
; Enter your Secure server Domain Name or IP Address (e.g. yourdomain.com or 26.63.165.200)
https_cookie_domain = <yourdomain.com>
; Enter the Physical path of your Application on your server
http_cookie_path = "/A2BCustomer_UI/"
; Enter the Physical path of your Application on your Secure server
https_cookie_path = "/A2BCustomer_UI/"
; Enter the Physical path of your Application on your server
dir_ws_http_catalog = "/A2BCustomer_UI/"
; Enter the Physical path of your Application on your Secure server
dir_ws_https_catalog = "/A2BCustomer_UI/"
; secure webserver for checkout procedure?
enable_ssl = yes
; Enter your domain name (Note: Do not include "http://" or "https://")
http_domain = www.<yourdomain>.com
; Enter the root directory of your web server
dir_ws_http = "/var/www/html"
; Define here the URL to notify the payment
payment_notify_url = "http://www.<yourdomain>.com/A2Billing_UI/paypal/ipn_res.php"
; Define the different amount of purchase that would be available (Maximum of 5 amount)
purchase_amount = 5:10:15:20:25
; Item name that would be display to the user when he will buy credit
item_name = "Credit Purchase"
; Currency for the Credit purchase, only one can be define here
currency_code = USD
; Define here the URL of paypal gateway the payment
paypal_payment_url = "https://secure.paypal.com/cgi-bin/webscr"
; Paypal transaction verification url
paypal_verify_url = www.paypal.com
; To test with Paypal sandbox
; paypal_payment_url = "https://www.sandbox.paypal.com/cgi-bin/webscr"
; paypal_verify_url = www.sandbox.paypal.com
; Paypal store name to show in the paypal site when customer will go to pay
store_name = <Your Store Name>
; Transaction Key for security of Epayment Max length of 60 Characters.
transaction_key = asdf1212fasd121554sd4f5s45sdf
Then using your web browser, login to the Admin interface (e.g.
http://www.yourdomain.com/A2Billing_UI/Public/) and expand the BILLING menu from the left pane. In the View Payment Methods, click the VIEW DETAILS button of Paypal and set the following:
Enable PayPal Module = True
E-Mail Address =
email address you set in your paypal account
Transaction Currency =
your desired currency
I hope this information helps.