Skip to content
This repository

SilverStripe Payment Module

branch: 1.0

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 _config
Octocat-spinner-32 code
Octocat-spinner-32 docs
Octocat-spinner-32 tests
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 _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.