PHPackages                             dia-nz/payment - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. dia-nz/payment

ActiveSilverstripe-module[Payment Processing](/categories/payments)

dia-nz/payment
==============

SilverStripe Payment Module

1.11(6y ago)035111BSD-3-ClausePHPPHP &gt;=7.1CI failing

Since May 1Pushed 6y ago4 watchersCompare

[ Source](https://github.com/DIA-NZ/payment)[ Packagist](https://packagist.org/packages/dia-nz/payment)[ RSS](/packages/dia-nz-payment/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (2)Versions (9)Used By (1)

SilverStripe Payment Module
===========================

[](#silverstripe-payment-module)

Maintainer Contacts
-------------------

[](#maintainer-contacts)

- [Jonathan Alpers](https://github.com/sreplaj)

Requirements
------------

[](#requirements)

- SilverStripe 4.\*

Documentation
-------------

[](#documentation)

### Usage Overview

[](#usage-overview)

This module provides the base API for various payment methods. This module is usually used in conjunction with other payment modules that integrate with particular payment gateways.

### Installation

[](#installation)

1. Place this directory in the root of your SilverStripe installation and call it 'payment'.
2. Visit yoursite.com/dev/build?flush=1 to rebuild the database.
3. Configure the payment module by creating a YAML configuration file
    e.g: mysite/\_config/Mysite.yaml

```
PaymentGateway:
	environment:
		'dev'

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

**Note**
The above configuration sets the payment into dev mode and assumes that the "payment-cheque" module is installed (see "Installing Payment Methods" below).
YAML configuration files need to use spaces instead of tabs.
You need to run a /dev/build?flush=1 each time the YAML configuration file is changed.

### Testing

[](#testing)

After installing this module you can access unit tests at yoursite.com/dev/tests.

Alternatively install the [payment test module](https://github.com/frankmullenger/silverstripe-gsoc-payment-test) for manual integration testing with different supported payment gateways. Dummy payment methods are included with the payment test module, it is also good to test with the "payment-cheque" module as this is a very simple way of processing payments.

### Installing Payment Methods

[](#installing-payment-methods)

Other payment methods such as cheque, PayPal, PaymentExpress, Paystation etc. can be installed as seperate modules and enabled in the YAML configuration file.

Find and install a payment method module, some that are currently available:
\- [Cheque](https://github.com/frankmullenger/silverstripe-payment-cheque)- [PayPal](https://github.com/frankmullenger/silverstripe-payment-paypal)- [Paystation](https://github.com/frankmullenger/silverstripe-payment-paystation)- [Payment Express](https://github.com/frankmullenger/silverstripe-payment-paymentexpress)- [Secure Pay Tech](https://github.com/frankmullenger/silverstripe-payment-securepaytech)

Enable the payment method in the YAML configuration file, payment method names can be found in each payment method module YAML configuration file as the first "node" under "PaymentFactory:".
e.g: mysite/\_config/Mysite.yaml

```
PaymentGateway:
	environment:
		'dev'

PaymentProcessor:
	supported_methods:
		dev:
			- 'Cheque'
			- 'DummyMerchantHosted'
			- 'DummyGatewayHosted'
			- 'PayPalExpress'
			- 'PaymentExpressPxPay'
			- 'PaystationThreeParty'
			- 'SecurePayTech'
		live:
			- 'Cheque'
```

Configure the payment method in the YAML configuration file if necessary, each payment method has slightly different requirements as far as configuration
e.g mysite/\_config/Mysite.yaml

```
PayPalGateway_Express:
	live:
		authentication:
			username: ''
			password: ''
			signature: ''
	dev:
		authentication:
			username: ''
			password: ''
			signature: ''
```

License
-------

[](#license)

Copyright (c) 2007-2013, SilverStripe Limited - [www.silverstripe.com](http://www.silverstripe.com)All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of SilverStripe nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~58 days

Recently: every ~0 days

Total

8

Last Release

2212d ago

PHP version history (2 changes)1.0.4PHP &gt;=5.3.2

1.0.5PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/262739?v=4)[Jonathan Alpers](/maintainers/sreplaj)[@sreplaj](https://github.com/sreplaj)

---

Top Contributors

[![pangelico](https://avatars.githubusercontent.com/u/145748491?v=4)](https://github.com/pangelico "pangelico (2 commits)")

---

Tags

silverstripepayment

### Embed Badge

![Health badge](/badges/dia-nz-payment/health.svg)

```
[![Health](https://phpackages.com/badges/dia-nz-payment/health.svg)](https://phpackages.com/packages/dia-nz-payment)
```

###  Alternatives

[silvershop/core

Provides an ecommerce product catalog, shopping cart, and order management system

11340.7k48](/packages/silvershop-core)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38108.5k17](/packages/silverstripe-silverstripe-omnipay)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[sunnysideup/ecommerce

Silverstripe E-commerce Application

247.3k84](/packages/sunnysideup-ecommerce)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
