I came across this question and out of all the answers I don't think I found one answer that actually provided a solution to the question posed by the user.
There were possible solutions posted by people, which most involved creating the Paypal button in a different (and unsecure) method; whilst these answers may provide a method for what the user wanted to do - they fail to do so in the manner the user was asking about.
I don't think I have seen a SO question with such poor answers before, several with many upvotes.