Hi @melari 
I had to rewrite the ssl_post method because I could not perform a successfully connection to payscout site. And I took the decision of implementing the same code that is used in the ruby implementation code example and It worked.
If you prefer I can spent some time trying to do the same with the original ssl_post method.

Thanks.