Jump to content
Larry Ullman's Book Forums

gameface

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by gameface

  1. Hi Everyone, On page 253, Larry talks about how in the email you receive for signing up with Authorize.net, you will receive IN THAT EMAIL the API login ID and the transaction key you will need later, on p. 296. I think things have changed, at least when setting up a test account. In the confirmation email, I got the following message: *************** If you need your test account's API Login ID and Transaction Key, simply log in to the Merchant Interface and click "Account." Then click "API Login ID and Transaction Key." Your API Login ID will be displayed. For security reasons, you cannot view your Transaction Key. Instead, you must generate a new one. To do this you will need the Secret Answer to the system-generated Secret Question, which is "XXXXXX". ************** Just thought I would point this out, because I missed this paragraph and spent 45 minutes trying to figure out where my API Login ID and Transaction Key were located. I don't know if I should be posting this as it is not a question, but I figured maybe it will help someone in the future.
  2. Hi Everyone, This post really isn't a question, but more of an explanation as to how I finally figured out how to set up cURL for XAMPP, which you need to do for communication with the Authorize.net API. You wouldn't think it would be that difficult to set up, but (at least for me) it took me about an hour to get it to work properly. Maybe this post may save someone in the future that hour. To start, Larry talks about page 252 that you can simply run phpinfo() to see if curl is enabled. When I ran phpinfo(), I simply did not see a setting that said "curl" at all. In other words, there was nothing telling me if curl was either enabled or disabled -- which I correctly interpreted to mean that curl was disabled. I then went into the php.ini configuration file (for me, located in xampp/php/php.ini) and removed the semicolon before "extension=php_curl.dll". The semicolon comments out a line, so you are essentially "un-commenting" the line. I must admit that I was confused, because I always believed there were 2 php.ini files -- one in the apache folder and one in the php folder I believe. Apparently, in recent releases of XAMPP, they have omitted the extra php.ini file and now it only exists in the php directory, so there is no need to change another php.ini file -- assuming you running the more recent versions of XAMPP. Check to see if your particular version has one or two php.ini files -- I don't know if having two files will make a difference in getting to curl to work. Once you have uncommented the curl line in php.ini, IMPORTANTLY, YOU MUST RESTART XAMPP IN ORDER FOR CHANGES TO THE CONFIGURATION FILE TO BECOME EFFECTIVE. So I restarted the apache server and mysql, and after that, curl became enabled. Once I ran phpinfo(), the curl heading appeared and it said "enabled" -- whereas before there was no indication of whether or not cURL was enabled. Hope this helps. If I've missed something or made an erroneous statement, please chime in, but this took me like an hour to figure out.
  3. Hi Larry, 1. Yes, you're correct -- the site is on dmcinsights.com. 2. Just to clarify, even when the quantity is 1 (and not greater than 1), and I reset to 0, the quantity remains 1. Thanks!
  4. I am having two problems with regards to the demo site that Larry has posted on his website for Example 2, the coffee-related shopping cart. Because the site is on larryullman.com, my PHP/MySQL versions that I am running are not relevant. PROBLEM 1: I have several items in my shopping cart, and I am attempting to remove some items from the cart. The "remove from cart" link works just fine, and removes the product from my shopping cart. However, I should be able to remove an item from my cart simply by updating the quantity to 0. As stated in the tip on p. 232, "The site offers two ways to remove items from the cart: clicking a link and entering zero for the quantity." However, anytime I try to remove an item by entering 0 as the quantity, the site will simply reduce the quantity to 1. PROBLEM 2: I am having problems with the "billing" part of the checkout process. On the demo site, I am given several test credit card numbers. No matter the credit card I try, I get the following error: __________________________________________________________________________________ 6011825550978435 There is a way to test the payment system to get card rejections, but that would require manually changing the code. If you use an expiration date in the past, the card will fail, though. (You'll see the error message appear just after this.) The merchant login ID or password is invalid or the account is inactive. Please fix the error or try another card. __________________________________________________________________________________ Furthermore, I made sure to indicate that the expiration date of the credit card is in the future (i.e., I changed the default expiration date from January 2011). Has anyone else had either of these problems, or is it just me? I've been playing around with this for about an hour.
×
×
  • Create New...