Written on September 19, 2008  /  with 9 comments  /  in the Drupal Tips category.

Easily Setup SSL & Authorize.net with Ubercart

Alright you’ve seen me write about Ubercart, the open source shopping cart for Drupal many times before. And I have been using Ubercart for various different projects with much success. But until recently, I never had the change in a project to use Ubercart with integration to an Authorize.net merchant account. I was very surprised how easy this was. Here is exactly what happened.

1) Since my client’s website was being hosted on Bluehost which also ranks in the top 3 for their ecommerce web hosting services reviewed and listed by web hosting search, I had my client purchase a secure certificate from Bluehost. Because he purchased it from Bluehost, their techs setup the SSL and did all the work without me having to do really anything.

2) Configured the Authorize.net API by providing Ubercart with my cient’s Authorize.net user id and password. To do this you need to activate the Authorize.net module and the Credit Card module.

3) Setup a directory outside of my docroot for my credit card encryption key to be stored. When setting up your Authorize.net module you will be notified to do this.

4) Went through all the Ubercart settings just to make sure that everything was setup exactly how I wanted it.

5) Downloaded and installed the Secure Pages module for Drupal. This module allows you to specify specific url’s within your site that you want to be under an HTTPS instead of just the regular HTTP.

6) Under the Secure Pages settings, I set the following url’s to be under an HTTPS with my newly setup Bluehost SSL…

user
user/*
user/*/edit
admin
admin/*
cart/checkout
cart/checkout/review
cart/checkout/payment_details/*
cart/checkout/complete

That’s It! Done! And Everything Works Great! That’s all I had to do and it worked perfectly. I have never had this quick of results when setting up an SSL  and hooking into the Authorize.net API. Despite the many shopping carts that claim how easy this is supposed to be, Ubercart provided in my own experience by far the easiest solution.

9 responses to this article so far...

Leave a comment