Home Integration Methods PagSeguro


PagSeguro is a Brazilian-based national e-commerce business allowing payments and money transfers to be made through the Internet.
The integration is done by a built-in plugin which reads PagSeguro data notifications.

In case you are already using data notifications for some application, please use the other integration method for PagSeguro.
PagSeguro setup
The first step is to enable data notifications in your PagSeguro.

First of all, you need to have a seller or a business account type. Login to your admin panel and navigate to Integrations> Security Token where you need to create a security token. Take a note of it, you will need it later.

After this, navigate to Integrations> Transaction notifications and set this URL there:

In case you already use this for another website, do not continue with the next steps but find the integration method for "PagSeguro (IPN already used)".
PagSeguro buttons
The next step in case of the integration is to integrate your PagSeguro buttons. Place this extra code into code of every button you want to integrate:
Besides this, every page with one or more buttons needs to have this code in it:

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">

Save your changes.
Plugin setup
The final step is to activate and configure your PagSeguro plugin. Login to your Post Affiliate Pro merchant panel and navigate to Plugins section. Activate and then configure the PagSeguro plugin. When configuring, you will need the security token mentioned in step 1.
You are done. Your sales will be tracked now.
Do not forget to integrate your site with the click tracking code to make it all working.