GithubHelp home page GithubHelp logo

stevepiercy / authorizenet_aim Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 122 KB

Payment processing tag for Lasso 8 and the Authorize.net AIM v3.1 payment processing gateway

License: Apache License 2.0

Lasso 7.26% PHP 92.74%

authorizenet_aim's People

Contributors

stevepiercy avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

authorizenet_aim's Issues

Testing code in release?

Around line 190 in the AuthorizeNet_AIM.inc file, what are these two "returns" for? After a bunch of back and forth testing, I finally found that to get the tag to work I had to comment them out. Were they just testing left overs?

// Send parameters to Authorize.Net. Cross fingers.
// return (#AIMParamArray);
#AIMResult = string(include_url(#AIMURL, -postparams=#AIMParamArray));
// return (#AIMResult);

curl: (35) Unknown SSL protocol error in connection to test.authorize.net:-9836

When using the options -tlsv12=TRUE and -curl=TRUE on macOS 10.12.6, an error is returned:

curl: (35) Unknown SSL protocol error in connection to test.authorize.net:-9836

The issue can be replicated by invoking curl directly via a terminal session, which confirms the issue is not with the AuthorizeNet_AIM tag, but with macOS's implementation of curl.

$ curl https://test.authorize.net/gateway/transact.dll --tlsv1.2
curl: (35) Unknown SSL protocol error in connection to test.authorize.net:-9836

macOS 10.12.6 has implemented curl built with OpenTransport which exhibits the behavior, and which in turn is called by the AuthorizeNet_AIM tag via shell and os_process.

The temporary workaround is to install curl via homebrew with brew install curl, then use its path to invoke curl in the AuthorizeNet_AIM tag.

Find:

        #AIMResult = string(shell('curl ' +#AIMURL + #curl_post_data + (#tlsv12 ? ' --tlsv1.2' | '')));

Replace:

        #AIMResult = string(shell('/usr/local/Cellar/curl/7.55.1/bin/curl ' +#AIMURL + #curl_post_data + (#tlsv12 ? ' --tlsv1.2' | '')));

See curl/curl#1703

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.