
General Solution
Learn how to integrate General Solution Software with Post Affiliate Pro using JavaScript or hidden image tracking for advanced commission tracking across vario...
Integrate Braintree with Post Affiliate Pro to effortlessly accept payments, enable commerce, and track affiliate sales with a simple setup and robust functionality.
A simple, robust way to accept payments or enable commerce from almost anywhere – in your mobile app or online.
The integration works with a special plugin and some setup in Braintree merchant panel.
The very first step is to define a new custom field which we will use for tracking. Navigate to your Braintree Control Panel – Settings > Processing and scroll down to Custom Fields. Create a new field with API Name as ‘visitorid‘ and Display name set e.g. to ‘Visitor ID‘. Finally, choose the ‘Store and Pass Back‘.
This step is a bit marginal as you might be using different methods of creating payment forms.
So, in general you have to add this special code to your form:
<input type="hidden" name="pap_custom" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
The script will automatically load the needed tracking value and include it to the form.
Now, you have to use the value to create a new customer in Braintree (next step).
In this step we will use the custom field value and send it to Braintree along with other customer details. We will use the custom field we defined in the first step.
Find the script which uses the Brantree Customer create function and add the custom value sent from the form. Here’s an example with use of Braintree’s PHP SDK:
$result = Braintree_Customer::create([
'firstName' => 'Mike',
'lastName' => 'Jones',
'company' => 'Jones Co.',
'email' => 'mike.jones@example.com',
'phone' => '281.330.8004',
'fax' => '419.555.1235',
'website' => 'http://example.com',
'customFields' => array('visitorid' => $_POST['pap_custom'])
]);
This change will send the needed tracking value as a custom field and save it to the customer.
The final step is to enable the Braintree plugin in your Post Affiliate Pro Plugins section and setting up a Braintree webhook which will communicate with the plugin.
To create a webhook, navigate to your Braintree Control Panel – Settings > Webhooks and create a new webhook. For the URL use the following one:
https://URL_TO_PostAffiliatePro/plugins/Braintree/braintree.php
In case of notifications you can use all the ‘** Subscription ** ‘ type notifications.
That’s it, you are now integrated.
Do not forget to integrate your site with the click tracking code to make it all working properly.
Braintreepayments is a robust payment processing platform that provides global commerce tools for businesses to manage revenue through a myriad of payment methods. Supporting merchants in over 45 countries and accepting payments in more than 130 currencies, Braintreepayments enables seamless transactions through platforms such as PayPal, Venmo, credit and debit cards, Apple Pay, and Google Pay. Acquired by PayPal in 2013, Braintreepayments is renowned for its efficiency in integrating payments across multiple devices and its innovative solutions like the Braintree SDK and Braintree Extend.
Founded by Bryan Johnson in Chicago on October 22, 2007, Braintreepayments quickly established itself in the mobile and web payment solutions space for e-commerce businesses. In 2012, it acquired Venmo, enhancing its peer-to-peer payment capabilities. The following year, PayPal acquired Braintreepayments for $800 million, expanding its global footprint. In 2014, Braintreepayments introduced its all-in-one SDK, streamlining payment integrations for developers. By 2015, it had processed $50 billion in authorized payment volume. Today, Braintreepayments continues to grow as a significant division under PayPal, influencing the global payments industry.
Braintreepayments is dedicated to businesses and merchants seeking versatile commerce tools to accept payments and facilitate transactions worldwide. It’s ideally suited for businesses that require:
If you’re exploring other options besides Braintreepayments, consider the following alternatives:
Overview: Offers international payment solutions with transparent, low-cost fees and supports multiple currencies, making it ideal for businesses dealing with cross-border transactions.
Braintreepayments is a robust payment processing platform that provides global commerce tools for businesses, supporting over 45 countries and 130+ currencies with integrations for PayPal, Venmo, credit cards, and digital wallets.
Define a custom field in Braintree, update your payment form with tracking code, send the tracking value to Braintree as a custom field, enable the Braintree plugin in Post Affiliate Pro, and set up a webhook in your Braintree Control Panel.
Key features include support for global and local payment methods, secure PCI DSS compliant transactions, advanced fraud management, global payouts, and developer-friendly resources with sandbox testing.
Standard pricing is 1.9% + €0.30 per EU card/digital wallet transaction, with additional fees for international cards, currency conversion, and ACH direct debit. Custom pricing is available for high-volume businesses.
Alternatives include Wise Business for international payments, Dwolla for ACH transfers, Stripe for comprehensive payment tools, and Authorize.net for a reliable payment gateway.
Pros include ease of integration and multiple payment methods. Cons include challenges with customer service, some fraud management limitations, and account management issues.
Lucia is a talented content editor who ensures the seamless publication of content across multiple platforms.
Experience seamless payment processing and affiliate tracking with Braintree and Post Affiliate Pro. Try it free for one month and boost your affiliate strategy.
Learn how to integrate General Solution Software with Post Affiliate Pro using JavaScript or hidden image tracking for advanced commission tracking across vario...
Would you like to improve your affiliate software even more? Check out the NewCart integration for Post Affiliate Pro.
Would you like to improve your affiliate software even more? Check out the Bambora (Beanstream) for Post Affiliate Pro.