PayPal Smart buttons integration
PayPal’s Smart Payment Buttons keep your site’s buttons up-to-date by ensuring you have the latest payment options and button styles.
PayPal Smart buttons gives you two options – to create a one time payment button or a subscription button. You can use this integration for both.
The integration consists of two main steps – the clik tracking code and the sale tracking code.
Click tracking code
You can find your click tracking code in your merchant panel Tools > Integration > Click tracking. Copy the code and place it to every page where you have a PayPal Smart button you want to integrate.
Sale (button) tracking
The sale tracking code has to be added into each of your Smart buttons. The code goes to ‘onApprove‘ section of the button code. In case your button does not use it, create it. The buttons should look like this:
<div id="paypal-button-container-P-NNNNN"></div>
<script src="https://www.paypal.com/sdk/js?client-id=XXXXXYYYYYZZZZZ&vault=true&intent=subscription" data-sdk-integration-source="button-factory"></script>
<script>
paypal.Buttons({
style: {
shape: 'pill',
color: 'silver',
layout: 'vertical',
label: 'paypal'
},
createSubscription: function(data, actions) {
return actions.subscription.create({
/* Creates the subscription */
plan_id: 'P-NNNNN'
});
},
onApprove: function(data, actions) {
// THE TRACKING CODE GOES HERE
}
}).render('#paypal-button-container-P-NNNNN'); // Renders the PayPal button
</script>
The sale tracking code will automatically read the new order/subscription ID. The price and the product ID has to be defined manually by you. Here’s the code to be used:
// Post Affiliate Pro integration code
var sale = PostAffTracker.createSale();
sale.setTotalCost('123.45'); // the price goes here
sale.setProductID('P-NNNNN'); // plan ID goes here
if (typeof data.subscriptionID !== 'undefined') {
sale.setOrderID(data.subscriptionID);
} else {
sale.setOrderID(data.orderID);
}
PostAffTracker.register();
That’s it. If you only want to track one time payment you do not have to enable PayPal plugin and you do not have to setup notification URL.
Recurring transactions tracking
To track recurring commissions you have to enable the PayPal plugin and you also have to setup this notification URL in your PayPal:
https://URL_TO_PostAffiliatePro/plugins/PayPal/paypal.php.
If you already use notification URL for another script you can still make the integration working. Take a loot at the section 3. in this guide:
/integration-methods/integration/paypalipnother/
Integrate PayPal seamlessly with Post Affiliate Pro using IPN callback to track sales and generate commissions for affiliates. Follow our simple steps to set up the PayPal IPN handling plugin and ensure your transactions are efficiently managed. Discover the benefits of streamlined affiliate management with Post Affiliate Pro today!
Discover seamless PayPro integration with Post Affiliate Pro, the perfect eCommerce platform for selling Software, SaaS, and Cloud Services. Easily track sales by adding tracking code to your thank you page, ensuring secure transactions via HTTPS. Explore more integrations and start your free trial today!
Explore seamless integrations with Post Affiliate Pro to enhance your affiliate marketing strategies. Discover solutions for e-commerce, email marketing, payments, and more, with easy integrations for platforms like 1&1 E-Shop, 2Checkout, Abicart, and many others. Optimize your affiliate network with these powerful tools.
Discover seamless e-commerce with ClickCartPro, integrated with ccBill for efficient sales tracking and commission generation. Set up your store quickly and enhance your affiliate marketing strategy. Sign up for a free account and schedule a call to explore how Post Affiliate Pro can elevate your business.
Effortlessly integrate your e-commerce site with Post Affiliate Pro and boost your affiliate program's success. Our expert team ensures seamless integration with your payment processor, handling technical issues along the way. Enjoy a free trial and free integration service, saving you time and maximizing your ROI. Join now and experience top-notch affiliate management with over 500 integration options.
Discover seamless integration of Internet Secure with Post Affiliate Pro, enabling your business to accept major credit cards in US and Canadian dollars. Learn about plugin activation, payment form setup, and examples for smooth transactions. Enhance your affiliate management with our user-friendly software and exceptional support. Visit now for a comprehensive guide and start optimizing your payment solutions today!