Cheque payment method for SilverStripe 3.0
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_config
code
tests
README.md
composer.json

README.md

SilverStripe Payment Cheque Module

Maintainer Contacts

Requirements

  • SilverStripe 3.*
  • Payment module 1.0.*

Documentation

Simple cheque payment method for SilverStripe payment module.

Installation Instructions

  1. Place this directory in the root of your SilverStripe installation and call it 'payment-cheque'.
  2. Visit yoursite.com/dev/build?flush=1 to rebuild the database.

Usage Overview

Enable in your application YAML config:

PaymentGateway:
  environment:
    'dev'

PaymentProcessor:
  supported_methods:
    dev:
      - 'Cheque'
    live:
      - 'Cheque'

Optionally you can set the supported currencies otherwise it will default to supporting GBP, USD, NZD (see ChequeGateway::$supportedCurrencies):

ChequeGateway:
  live:
    supported_currencies: 
      'NZD' : 'New Zealand Dollar'
      'USD' : 'United Statues Dollar'
  dev:
    supported_currencies: 
      'NZD' : 'New Zealand Dollar'
      'USD' : 'United Statues Dollar'

Remember to ?flush=1 after changes to the config YAML files.