PayPal Express Checkout (IPN usato da altri script) integration
Il modo più veloce e sicuro per inviare denaro, fare un pagamento online, ricevere denaro o creare un account commerciante.
PayPal Express Checkout si integra usando il callback IPN anche se il callback è già stato utilizzato da un altro sistema (per esempio dal carrello degli acquisti).
Nota! Questa è la descrizione dell’integrazione con PayPal Express Checkout se usi i pulsanti PayPal sulle tue pagine web. Se invece usi PayPal come sistema di elaborazione nel tuo carrello degli acquisti, segui il metodo per l’integrazione con il carrello degli acquisti, non questi passaggi.
Pulsante PayPal
Adesso aggiungi il seguente codice in OGNI modulo del pulsante PayPal:
<input type="hidden" name="custom" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
Questo farà in modo che il referrer venga memorizzato nel campo personalizzato.
Esempio
Esempio di modulo PayPal aggiornato:
<!-- Begin PayPal Button -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="paypalemail@yoursite.com">
<input type="hidden" name="undefined_quantity" value="1">
<input type="hidden" name="item_number" value="Product Name">
<input type="hidden" name="amount" value="19.95">
<input type="hidden" name="image_url" value="https://yoursite.com/images/paypaltitle.gif">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://www.yoursite.com/paypalthanks.html">
<input type="hidden" name="cancel_return" value="http://www.yoursite.com">
<input type="hidden" name="custom" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript"></script>
<input type="image" src="http://images.paypal.com/images/x-click-but5.gif" border="0" name="submit">
</form>
<!-- End PayPal Button -->
Integrazione 2
Ora il callback IPN è indirizzato al tuo script. Questo callback deve essere inoltrato anche allo script PAP paypal.php, il cui url è https://URL_TO_PostAffiliatePro/plugins/PayPal/paypal.php.
Nel caso in cui il tuo script di elaborazione di paypal sia in PHP, puoi usare il seguente codice per farlo. Puoi metterlo all’inizio del tuo file di elaborazione.
/* PAP integration */
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://URL_TO_PostAffiliatePro/plugins/PayPal/paypal.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
curl_exec($ch);
/* end of PAP integration */
Questo assicurerà che l’intero IPN callback venga inoltrato senza influenzare il tuo script originale
Questo è tutto ciò che devi fare. Ora ogni volta che c’è una vendita, PayPal Express Checkout userà la sua funzionalità IPN per chiamare il nostro script di monitoraggio delle vendite, e il sistema genererà la commissione per l’affiliato.
Discover the essentials of clicks (referrals) tracking with our comprehensive guide. Learn about the importance of click tracking code, explore various code examples including simple, asynchronous, and PHP versions, and dive into advanced tracking options. Optimize your affiliate marketing strategy with expert tips on setting account IDs, managing cookies, and customizing tracking parameters. Visit now to enhance your click tracking implementation!
How to integrate Post Affiliate Pro (Network) with 3rd party affiliate systems?
Learn how to integrate Post Affiliate Pro with 3rd-party affiliate systems. Follow our step-by-step guide to streamline your affiliate tracking!
Easily integrate Post Affiliate Pro or Post Affiliate Network with WordPress using our plugin to track clicks, register new users as affiliates, and monitor contact form submissions. Activate click tracking, automate affiliate signups, and utilize affiliate shortcodes to enhance your website's functionality. Download now to streamline your affiliate management directly from WordPress.
9. Integrate the affiliate software with your website
Integrate your affiliate software seamlessly with your website for effective tracking of referrals and commissions. Set it up right!
Custom integrations & tracking scripts
Discover tips for custom integrations & tracking scripts in Post Affiliate Pro. Optimize affiliate tracking with expert guides & code samples.
How to track affiliate signup form
Track successful affiliate signups in Post Affiliate Pro using callback URLs, custom page designs, or external forms.