The ‘Basic Payment Method’ from Payment module is very versatile.
It can be used for

  • Do not transfer money test cases - easily pay for an order without actually paying. Comes in handy when testing a Drupal site.
  • Pay later cases - for customers paying with a check, bank transfer, or cash on delivery, or when paying when they pick up the products in your store.
  • Free orders - providing a payment solution for your customers so they get the order for free.

Note that you can add as many "Basic Payment Methods" as you like, so having both a "Check" and "cash on delivery" payment method during checkout is entirely possible.

As of version 7.x-1.8, Basic Payment Method comes with No payment required and Collect on delivery payment methods by default.

Enabling required modules

  1. Download Payment, which includes Basic Payment Method (there is also a payment module included in Drupal Commerce which is different from the abovementioned module.)
  2. Optionally download a context module, such as Payment for Drupal Commerce, Payment for Ubercart, or Payment for Webform
  3. Enable Payment, Basic Payment Method and optionally a context module.

Creating a basic payment method

Go to Administration » Configuration » Web services » Payment » Payment methods » Basic, and fill out the fields:

Enabled
Whether the payment method can be used, or should be ignored when processing payments.
Title (specific)
The payment method's administrative title.
Title (generic)
The title customers get to see, for instance the payment method's brand name.
Owner
The user who is allowed to administer the payment method, similar to a node author. Actual permissions are configurable.
Final payment status
The status a payment will receive after being processed by this payment method.
Payment form message
A message shown to the customer after selecting this payment method in the payment form.

Do not transfer money for test cases

Set Final payment status to Completed, which means that the system will think the real-world payment transaction was successful and possible store orders will be updated accordingly.

Free orders

Set Final payment status to Completed, which means that the system will think the real-world payment transaction was successful and possible store orders will be updated accordingly. You may want to hide the payment method for orders that are not free, which you can do using hook_payment_validate(), or your context module (Drupal Commerce has advanced payment method rules, for instance).

Pay later

This is useful for checks, bank transfers, cash on delivery, in store payment, etc. Set Final payment status to Pending, which means that the payment is still being processed after the basic payment method has done its job. Later, when you received the money, you can manually update the payment with another status, such as Completed. See Administration » Content » Payments for an overview of all payments (requires the View any payment permission).

Add comment

CAPTCHA

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Selectionnez les trois images avec des arbres:
Creative Commons Licence