Passing CartStack the PayPal Button ID

Passing CartStack the PayPal Button ID prevents customers who check out with PayPal from getting CartStack emails. In order to do this, you must know the button ID. If there’s not one assigned, you or a developer on your team would need to create it. ***** should be replaced with the ID that is used to select the PayPal Button on your site.

Add this code to the confirmation snippet: 

_cartstack.push(['setThirdPartyID', 'payment_method_paypal']);

So the full confirmation code will look like this:

<script src="" type="text/javascript"></script>
<script type="text/javascript">
var _cartstack = _cartstack || [];
_cartstack.push(['setSiteID', XXXXXX=']); //required
_cartstack.push(['setAPI', 'tracking']); //required
_cartstack.push(['setCartTotal', '']); //optional
_cartstack.push(['setThirdPartyID', '*****']);

Make sure to replace XXXXXXXX in the code snippet with your unique Site ID. You can find your  Site ID in the CartStack admin, on the  Code tab.

Basically, "setThirdPartyID" tells CartStack to stop sending emails when the PayPal button has been clicked. 

This only needs to be done on the checkout page.
Did this answer your question? Thanks for the feedback. Click the "Contact Us" button to the right if you need further help. There was a problem submitting your feedback. Please try again later.