You can use the code and samples here to integrate twist's networks tracking if you are using PayPal for your payments