Paypal payment system integration with Arrow Telecom's ArrowBilling
This Howto describes principles of configuring Paypal and Arrow Telecom's  Arrow Billing (AB) to provide automatic payment processing. Datatechlabs Arrow Billing    can be integrated with Paypal IPN (Instant payment Notification) System to receive    notifications from Paypal online payment processing system about payment transactions.    AB verifies payment information and updates user's balance. In order to use    this feature, you must have Paypal Business or Premium account available. This    is the snapshot of your Paypal Business account screen: 
  
 As of Billing version 1.4.2, you are able to assign separate Paypal account to  each of your resellers. In this case, when a customer belonging to a particular  reseller pays via Paypal, the recipient of the money is reseller. This is done  automatically by Arrow Billing.   
Table of Contents
Basic Principles
  The link for Paypal payment is located in Arrow Billing enduser's area. Once logged  in, user accesses Paypal payment link using Payments on left side navigation  panel. System administrator has choice of setting up either fixed amounts which  the user is allowed to pay or leave choice to the user - in such case there will  be an empty box presented in Paypal payments page where the user can  choose any amount to pay. 


Once payment method and amount is chosen, the user is presented with next page which confirms payment amount and method:
 By clicking on Paypal logo, user is redirected to Paypal secure payment  processing page. Depending on users preferences, he/she may be prompted to login  to paypal, choose payment method and make payment. It is important for user to  click "Continue" button once payment is done. It will then take user back to Arrow  Billing enduser's area where he/she will be presented with Payment detail record  confirming payment. Both buyer and seller will receive payment confirmation email  from Paypal as well. 
 
show top
Arrow Billing Configuration for Paypal Payment Processing Directly to Service    Provider (no reseller)
Click Tools on the left menu, and then click on Options tab. Following settings are critical for setting up Paypal support:  
General
Billing Server URL
 Enter valid DNS name or IP address of your Arrow Billing server including URL. In most cases this is same URL which you use for logging into AB. Omit part which comes after ? (question mark) symbol inclusive. This setting is very critical, as it tells Paypal where to direct user back after purchase and where to send payment confirmation. 




show top
Online Payment Systems: Paypal
Enable
Check this box to globally enable/disable this feature. 
Put In Test Mode
Check this checkbox when doing tests. When checked, all transactions will be executed against Paypal Sandbox Development Environment (www.sandbox.paypal.com). Please see Paypal Developer Documentation for more information (https://developer.paypal.com/). Useful for development only. 
Paypal Receiver Email
Type Your Registered Paypal payments receiver email here.  
Paypal Item Name Dispaly for Endusers
This field is optional. It will display Item name and description in PayPal payments page.  
Currency
Payment Currency. Plese check with Paypal which currency (currencies) are available in your country.  

show top
Paypal Configuration
Setting Up IPN
You must set up IPN (Instant Payment Notifications) to make Arrow Billing properly update users account once payment is made.   
To set up IPN: 
  1. Log in to your Business or Premium PayPal account;
  1. Click the Profile subtab;
  1. Click The Instant Payment Notification Preferences link in the      Selling Preferences column;
  1. Click Edit;
  1. Click the checkbox and and enter URL at which you will receive IPN notifications.      In default AB configuration, this URL consists of Billing Server URL ammended with users/userspage.php.      Example: http://billing.mycompany.com/billing/users/userspage.php http://127.0.0.1/billing/users/userspage.php
  1. Click Save.
show top 
Arrow Billing Configuration for Paypal Payment Processing for Reseller
  1. Log into Arrow Billing as Service Provider (root) user.
  1. Click "Companies", and choose "reseller" in "Type of Company"      dropdown box:
 
  1. Click Search to find the Reseller you would like to set up
  2. Click on Company name to open Company detail screen
  3. Scroll down, find reseller account property and click on reseller account name/link to open reseller property window
 
  1. Once in, click on Reseller Properties tab on top menu:
  1. The settings in Paypal are the same as settings for root user described in above chapter.
  1. click "Modify Settings" button once settings have been changed.
show top