Since we can’t do that automatically, you’ll have to edit some of your website’s code.
Copy
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.