Drupal Storefront Payment Configuration - dummies

Drupal Storefront Payment Configuration

By Lynn Beighley, Seamus Bellamy

After configuring your Drupal site storefront you have to make decisions about getting paid. You have a number of options for third-party merchant services you can use to handle the credit card transactions on your site.

You will need to activate the modules that allow interaction with these sites and let you accept payment. Instruction is focused on Google Checkout specifically, but other companies operate in a similar fashion. First you have to enable the Payment module, and then set up — and use — a Google Checkout account.

Before you can accept credit cards, you need to

  • Make sure your site is hosted on a secure server, which protects the credit card information your users enter on an order form.

  • Activate additional modules.

  • Sign up for an account with a company that can process your credit card orders for you, such as PayPal or Google.

To give you an idea of the process involved in setting up one of these accounts, the example walks you through setting up a Google Checkout account. Unfortunately, sites and processes change all the time, so your best bet is to visit the site and read the documentation for the correct processes to follow.

Choosing a credit card service

Before adding the modules to accept payment, you should create an account with the service you intend to use. Some of your options are

All these services take a small fee for each transaction they process. Check with the specific company for details.

Setting up Ubercart to accept credit card payments

When you’ve chosen a company to work with to process your transactions, you need to enable the correct modules and set your site to process payments with that merchant. To set Ubercart to accept payment, follow these steps:

  1. Click Modules on the Dashboard menu bar.

  2. Under the Ubercart – Core (optional) section, select the Payment check box.

  3. Under the Ubercart – Payment section, select the Google Checkout check box (or select the check box for your particular vendor).

    Most of the options under the Ubercart – Payment section are additional options you can use with different terms and conditions.

  4. Click Save Configuration.

Turning on payment

All of the configuration options for setting up payment are found under Store→Payment Settings. To set Ubercart to use your payment method of choice, follow these steps:

  1. Choose Store→Payment Settings.

  2. Click the Payment Methods block.

  3. Click Payment Methods.

    You see the list of payment methods you enabled.


  4. To use a particular method, select the Enabled check box next to it and click Save Configuration.

You won’t be able to select a method until you’ve configured its settings.

Setting up a Google Checkout account

To set up a Google Checkout account, follow these steps:

  1. Browse to Google Checkout.

    If you don’t already have a Google account, you need to create one.

  2. Fill out a form to gather business information for your account.

  3. After you complete the form, click the Settings tab to get the Merchant ID you will need for your site.

    It’s in the Private Contact Information section next to Merchant ID.

  4. On your site, choose Store→Payment Settings→Payment Methods→Google Checkout Settings.


  5. Click the Account tab.

  6. In the instructions, copy the URL it tells you to enter on the Google Checkout Merchant Center site.

  7. In another window, browse to Google Checkout and log in if necessary.

  8. Click the Settings tab, and then click the Integration link on the left. Enter the URL from step 6 in the API callback URL text field.

  9. Copy the Google merchant ID number. Click Save.

  10. Press Ctrl+C (Windows) or cmd+C (Mac).

  11. In the browser window with your Drupal site open, choose Administer→Store Administration→Configuration→Google Checkout Settings.

  12. Click the Account tab, and paste the Google merchant ID number into the Merchant ID field.

    Press Ctrl+P (Windows) or cmd+P (Mac).

  13. Go back to the browser window with the Google Checkout page, and copy the Google merchant key.

  14. Repeat Steps 10 and 11, but paste the merchant key into the Merchant Key field.