Skip to content
This repository was archived by the owner on Jan 10, 2022. It is now read-only.

Commit ef42eb4

Browse files
committed
Merge branch 'release/3.0.0'
2 parents 07b6a02 + 319e712 commit ef42eb4

10 files changed

Lines changed: 359 additions & 253 deletions

File tree

.scrutinizer.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,36 @@
11
build:
2+
nodes:
3+
analysis:
4+
tests:
5+
override:
6+
- php-scrutinizer-run
7+
8+
coverage:
9+
tests:
10+
override:
11+
- command: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
12+
coverage:
13+
file: build/logs/clover.xml
14+
format: clover
15+
216
environment:
317
php: 7.3.0
418
variables:
519
WP_TESTS_DB_NAME: 'wp_phpunit_tests'
620
WP_TESTS_DB_USER: 'root'
721
WP_TESTS_DB_PASS: ''
8-
WP_TESTS_DB_HOST: 'localhost'
9-
project_setup:
10-
before:
11-
- mysql -e "CREATE DATABASE wp_phpunit_tests"
22+
WP_TESTS_DB_HOST: '127.0.0.1'
23+
24+
services:
25+
mysql: 5.7
26+
1227
dependencies:
1328
override:
1429
- composer install --ignore-platform-reqs --no-interaction
15-
nodes:
16-
coverage:
17-
tests:
18-
override:
19-
- command: ./vendor/bin/phpunit
20-
coverage:
21-
file: build/logs/clover.xml
22-
format: clover
30+
31+
project_setup:
32+
before:
33+
- mysql -e "CREATE DATABASE wp_phpunit_tests"
2334

2435
filter:
2536
excluded_paths:

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
77
## [Unreleased][unreleased]
88
-
99

10+
## [3.0.0] - 2021-08-05
11+
- Updated to `pronamic/wp-pay-core` version `3.0.0`.
12+
- Updated to `pronamic/wp-money` version `2.0.0`.
13+
- Changed `TaxedMoney` to `Money`, no tax info.
14+
- Switched to `pronamic/wp-coding-standards`.
15+
- Added support for SprayPay payment method.
16+
1017
## [2.1.3] - 2021-04-26
1118
- Happy 2021.
1219

@@ -62,7 +69,8 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
6269
### Added
6370
- First release.
6471

65-
[unreleased]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/2.1.3...HEAD
72+
[unreleased]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/3.0.0...HEAD
73+
[3.0.0]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/2.1.3...3.0.0
6674
[2.1.3]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/2.1.2...2.1.3
6775
[2.1.2]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/2.1.1...2.1.2
6876
[2.1.1]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/2.1.0...2.1.1

composer.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"require": {
3535
"php": ">=5.6.20",
36-
"wp-pay/core": "^2.6"
36+
"wp-pay/core": "^3.0"
3737
},
3838
"repositories": [
3939
{
@@ -59,24 +59,19 @@
5959
}
6060
],
6161
"require-dev": {
62-
"wp-e-commerce/wp-e-commerce": "^3.14",
6362
"bamarni/composer-bin-plugin": "^1.4",
64-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
6563
"php-coveralls/php-coveralls": "^2.4",
66-
"phpcompatibility/php-compatibility": "^9.2",
67-
"phpcompatibility/phpcompatibility-wp": "^2.0",
6864
"phpmd/phpmd": "^2.7",
6965
"phpunit/phpunit": "^5.7 || ^6.0",
70-
"roots/wordpress": "^5.6",
71-
"squizlabs/php_codesniffer": "^3.4",
72-
"wp-coding-standards/wpcs": "^2.3",
66+
"pronamic/wp-coding-standards": "^1.0",
67+
"roots/wordpress": "^5.8",
7368
"wp-e-commerce/wp-e-commerce": "^3.14",
74-
"wp-phpunit/wp-phpunit": "^5.6"
69+
"wp-phpunit/wp-phpunit": "^5.8"
7570
},
7671
"scripts": {
7772
"coveralls": "vendor/bin/php-coveralls -v",
7873
"phpcbf": "vendor/bin/phpcbf",
79-
"phpcs": "vendor/bin/phpcs -s -v",
74+
"phpcs": "XDEBUG_MODE=off vendor/bin/phpcs -s -v",
8075
"phplint": "find src tests -name '*.php' | xargs -n 1 -P 4 php -l",
8176
"phpmd": "vendor/bin/phpmd src,tests text phpmd.ruleset.xml --suffixes php",
8277
"phpstan": "vendor/bin/phpstan analyse",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wp-e-commerce",
3-
"version": "2.1.3",
3+
"version": "3.0.0",
44
"description": "WP eCommerce driver for the WordPress payment processing library.",
55
"repository": {
66
"type": "git",

phpcs.xml.dist

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,14 @@
11
<?xml version="1.0"?>
22

33
<ruleset name="WordPress Pay WP eCommerce rules">
4-
<config name="minimum_supported_wp_version" value="4.7" />
5-
6-
<config name="testVersion" value="5.6-" />
7-
84
<file>.</file>
95

10-
<arg name="colors"/>
11-
<arg name="extensions" value="php" />
12-
<arg value="sp" />
13-
14-
<exclude-pattern>node_modules/*</exclude-pattern>
156
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
167
<exclude-pattern>tests/wp-config.php</exclude-pattern>
17-
<exclude-pattern>vendor/*</exclude-pattern>
18-
<exclude-pattern>wordpress/*</exclude-pattern>
19-
<exclude-pattern type="relative">^wp-content/*</exclude-pattern>
20-
21-
<rule ref="PHPCompatibilityWP" />
22-
23-
<rule ref="WordPress">
24-
<exclude name="Generic.Files.LowercasedFilename.NotFound" />
258

9+
<rule ref="PronamicWP">
2610
<exclude name="Squiz.PHP.CommentedOutCode.Found" />
2711

28-
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
29-
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
30-
3112
<exclude name="WordPress.Security.SafeRedirect.wp_redirect_wp_redirect" />
3213
</rule>
3314
</ruleset>

phpunit.xml.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
</whitelist>
2121
</filter>
2222

23-
<logging>
24-
<log type="coverage-clover" target="build/logs/clover.xml"/>
25-
</logging>
26-
2723
<php>
2824
<env name="WP_PHPUNIT__TESTS_CONFIG" value="tests/wp-config.php"/>
2925
</php>

src/Extension.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ public function merchants_modules( $gateways = array() ) {
150150
'display_name' => __( 'SOFORT', 'pronamic_ideal' ),
151151
'internalname' => 'wpsc_merchant_pronamic_sofort',
152152
),
153+
'SprayPayGateway' => array(
154+
'name' => __( 'Pronamic - SprayPay', 'pronamic_ideal' ),
155+
'display_name' => __( 'SprayPay', 'pronamic_ideal' ),
156+
'internalname' => 'wpsc_merchant_pronamic_spraypay',
157+
),
153158
);
154159

155160
foreach ( $classes as $class => $args ) {

src/Gateways/SprayPayGateway.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* SPrayPay Gateway.
4+
*
5+
* @author Pronamic <info@pronamic.eu>
6+
* @copyright 2005-2021 Pronamic
7+
* @license GPL-3.0-or-later
8+
* @package Pronamic\WordPress\Pay\Extensions\WPeCommerce
9+
*/
10+
11+
namespace Pronamic\WordPress\Pay\Extensions\WPeCommerce\Gateways;
12+
13+
use Pronamic\WordPress\Pay\Core\PaymentMethods;
14+
15+
/**
16+
* SprayPay Gateway.
17+
*
18+
* @author Reüel van der Steege
19+
* @version 2.2.0
20+
* @version 2.2.0
21+
*/
22+
class SprayPayGateway extends Gateway {
23+
/**
24+
* Payment method
25+
*
26+
* @var string $payment_method
27+
*/
28+
const PAYMENT_METHOD = PaymentMethods::SPRAYPAY;
29+
}

vendor-bin/phpstan/composer.lock

Lines changed: 34 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)