Moved code to initial paypal button incase it breaks things.