For this integration, you need a PayPal business account!

  1. Create a PayPal developer app

Head to PayPal Developers and create an app (the name doesn’t matter).

After creating the app, make sure to check the following permissions:

  • Payouts
  • Customer disputes
  • Transaction search
  1. Find your app’s client Id and secret

Afficone needs these to access to attribute your new sales to the appropriate affilites.

  1. Attach the referral code to your PayPal button

Since we can’t do that automatically, you’ll have to edit some of your website’s code.

paypal.Buttons({
    // ... other properties
    createOrder: function (data, actions) {
        return actions.order.create({
            // ... other properties
            purchase_units: [{
                // ... other properties
                custom_id: window.Afficone.referral
            }]
        });
    },
}).render("#YOUR-PAYPAL-BUTTON-ID");

If you’re using a plugin or not using PayPal buttons, you can search for the equivalent of custom_id for your type of integration.

PayPal’s developer documentation is kind of a mess. They have a bunch of ways you can pay somebody, that are completely incompatible with eachother.

The most common way is PayPal buttons (that’s what we support).

If you use something else, you can contact us at [email protected] and we could try to include it in our PayPal integration and this documentation.