Jump to content
Sign in to follow this  
Orphon

Help with Authorize.net and curl

Recommended Posts

// Post order info data to Authorize.net, make sure you have curl installed
// Please edit the "Path to cURL" to reflect your path to cURL.  Leave the -d and everything
// after it intact (i.e. /usr/local/bin/curl or c:/apache/htdocs/bin/curl)
exec("Path to cURL -d \"$data\" https://secure.authorize.net/gateway/transact.dll", $response);

 

I am not sure what to put here or where exactly.... my host tells me that curl is at usr/bin/curl

 

I am getting an error that there is a problem with the credit card, and as I don't know what to put here, I don't know if it is that or something else....

 

thanks


Angela

Share this post


Link to post
Share on other sites
// Post order info data to Authorize.net, make sure you have curl installed
// Please edit the "Path to cURL" to reflect your path to cURL. ?Leave the -d and everything
// after it intact (i.e. /usr/local/bin/curl or c:/apache/htdocs/bin/curl)
exec("Path to cURL -d \"$data\" https://secure.authorize.net/gateway/transact.dll", $response);

 

I am not sure what to put here or where exactly....  my host tells me that curl is at usr/bin/curl

 

I am getting an error that there is a problem with the credit card, and as I don't know what to put here, I don't know if it is that or something else....

 

thanks

You want the above to look like this:

 

// Post order info data to Authorize.net, make sure you have curl installed
// Please edit the "Path to cURL" to reflect your path to cURL. ?Leave the -d and everything
// after it intact (i.e. /usr/local/bin/curl or c:/apache/htdocs/bin/curl)
exec("/usr/bin/curl -d \"$data\" https://secure.authorize.net/gateway/transact.dll", $response);

Share this post


Link to post
Share on other sites

ok I fixed that part but I am still getting "There has been an error processing your credit card. Please try again."

 

Any ideas???


Angela

Share this post


Link to post
Share on other sites

ok I fixed that part but I am still getting "There has been an error processing your credit card. Please try again."

 

Any ideas???


Angela

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×