ecommerce

Payment Gateway API

Payment Gateway API this is the plugable module that provide API for payments on Drupal site. This module will be useful to those who do not need the full functionality of a shopping cart, but need to do accept payments online. For example: donations, pay for access to content, the simple site sells only a single product, etc.

Payment methods

Now module provides access to the following payment gateways:

If you develop a new gateway, please let us know so that we can add it to this list.

How to use module

To use this module you need to create a form with the payment data and call pgapi_transatstion_save($payment). Also, you can see the code module pg_simplepay for the study.

Payment

Payment is a fully pluggable and reusable platform for processing payments. Modules implementing it and payment methods are completely unaware of eachother, which means that any module can use any payment method plugged into Payment and vice versa.
This handbook section describes the thoughts behind and the workflow of the Payment project, which is useful for site builders and developers.

  • API documentation
  • For callback documentation, see the places where those callbacks are supposed to be configured, e.g. for the payment finish callback, which is Payment::finish_callback, see the declaration of that property in the Payment class definition.

Payfast Ubercart Integration

Documentation for the Payfast module.

Requirements

Install

Install uc_payfast as you would any standard module. Download the module, unzip/untar and copy to sites/all/modules or sites/[site name]/modules. Then go to the modules page (http://example.com/admin/build/modules) and enable it.

Otherwise if you have access to or use Drush you can install uc_payfast with the following commands:

$ drush dl uc_payfast
$ drush en -y uc_payfast

Configure

To configure Payfast you need to go to the Ubercart payment settings (http://example.com/admin/store/settings/payment/methods) and make sure it is enabled. Then click the expander under the payment methods table to add all of your Payfast details. You can also set your shop to sandbox or live module. Sandbox mode allows you to run test checkouts without spending any money and should only be used while your site is in development. Please note that sandbox is the default mode.

Usage

Read more
Subscribe with RSS Syndicate content
nobody click here