Drupal Planet Posts

Installing Drush without PEAR

Here's an easy way to install drush without PEAR.

Note, replace the wget argument with a current version of drush. http://drupal.org/project/drush

# cd /usr/local/share/
# wget http://ftp.drupal.org/files/projects/drush-x.x-x.x.tar.gz
# tar -zxvf drush-7.x-5.7.tar.gz 
# rm tar -zxvf drush-7.x-5.7.tar.gz
# chmod a+x drush/drush
# ln -s /usr/local/share/drush/drush /usr/local/bin/drush

When you want to update drush, simply replace the drush directory in /usr/local/share.

Drupal 7 Ubercart - Programmatically Capture Pre-Authorized Payments from Authorize.net

I'm working with Drupal 7, Ubercart, and the Authorize.net payment gateway.

The goal here is to pre-authorize the payment at check-out, and capture the payment once the items have been shipped. I'm using order status to trigger when that happens, but I wanted to just show an example of how to capture that pre-authorized transaction.

    Important notes: