Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
SilverStripe Payment Module
PHP Scheme
branch: 1.0

This branch is 32 commits behind silverstripe-labs:1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
_config
code
docs/en
tests
LICENSE
README.md
_config.php

README.md

SilverStripe Payment Module

Maintainer Contacts


Requirements


  • SilverStripe 3.0

Documentation


Usage Overview

This module provides the base API for various payment methods

Installation

  1. Place this directory in the root of your SilverStripe installation and call it 'payment'.
  2. Visit yoursite.com/dev/build to rebuild the database.
  3. Set the environment (optional). If not set, the default value is set to SilverStripe environment.

    PaymentGateway:
      'environment':
        'dev'
    
  4. Enable supported payment methods in your application yaml file. Make sure that the respective sub-modules are installed. Only Dummy payment methods are shipped with the module.

    PaymentProcessor:
      supported_methods:
        'dev':
          - 'DummyMerchantHosted'
          - 'DummyGatewayHosted'
        'live':
          - 'PayPalDirect'
          - 'PayPalExpress'
    

Testing

After cloning this GitHub repository, make sure all the tests in /dev/tests are passed to make sure the environemnt settings are correct.

Install the PaymentTest module to do UI testing for the supported payment gateways. By default, DummyMerchantHosted and DummyGatewayHosted are enabled for testing purposes. For other gateways, you must specify them under 'supported_methods' in the yaml config.

Installing Payment methods

Payment methods are shipped separately. Each method is one module and can be installed in the same way as other SilverStripe modules.

List of current supported payment methods:

Something went wrong with that request. Please try again.