- SilverStripe 3.0
This module provides the base API for various payment methods
-
Place this directory in the root of your SilverStripe installation and call it 'payment'.
-
Visit yoursite.com/dev/build to rebuild the database.
-
Set the environment (optional). If not set, the default value is set to SilverStripe environment.
PaymentGateway: 'environment': 'dev'
-
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'
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.
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: