Skip to content

Commit

Permalink
Merge branch 'release/3.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Aug 18, 2021
2 parents 25ec33e + ca4e79c commit f2646e7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
## [Unreleased][unreleased]
-

## [3.0.2] - 2021-08-18
- Fix "Fatal error: Uncaught Error: Undefined class constant 'V_PAY'".

## [3.0.1] - 2021-08-16
- Added support for American Express, Maestro, Mastercard, V PAY and Visa.
- Save `CustomerIBAN` and `CustomerBIC` for Sofort payments.
Expand Down Expand Up @@ -101,7 +104,8 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
## [1.0.0] - 2015-01-19
- First release.

[unreleased]: https://github.com/wp-pay-gateways/buckaroo/compare/3.0.1...HEAD
[unreleased]: https://github.com/wp-pay-gateways/buckaroo/compare/3.0.2...HEAD
[3.0.2]: https://github.com/wp-pay-gateways/buckaroo/compare/3.0.1...3.0.2
[3.0.1]: https://github.com/wp-pay-gateways/buckaroo/compare/3.0.0...3.0.1
[3.0.0]: https://github.com/wp-pay-gateways/buckaroo/compare/2.2.0...3.0.0
[2.2.0]: https://github.com/wp-pay-gateways/buckaroo/compare/2.1.2...2.2.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "buckaroo",
"version": "3.0.1",
"version": "3.0.2",
"description": "Buckaroo driver for the WordPress payment processing library.",
"repository": {
"type": "git",
Expand Down
28 changes: 20 additions & 8 deletions src/PaymentMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Company: Pronamic
*
* @author Remco Tolsma
* @version 2.0.0
* @version 3.0.2
* @since 1.0.0
*/
class PaymentMethods {
Expand Down Expand Up @@ -113,19 +113,31 @@ class PaymentMethods {
*/
const VISA = 'visa';

/**
* Indicator for the 'V PAY' payment method.
*
* @var string
*/
const V_PAY = 'vpay';

/**
* Payments methods map.
*
* @var array<string, string>
*/
private static $map = array(
Core_PaymentMethods::BANK_TRANSFER => self::TRANSFER,
Core_PaymentMethods::BANCONTACT => self::BANCONTACT_MISTER_CASH,
Core_PaymentMethods::MISTER_CASH => self::BANCONTACT_MISTER_CASH,
Core_PaymentMethods::GIROPAY => self::GIROPAY,
Core_PaymentMethods::IDEAL => self::IDEAL,
Core_PaymentMethods::PAYPAL => self::PAYPAL,
Core_PaymentMethods::SOFORT => self::SOFORTUEBERWEISING,
Core_PaymentMethods::AMERICAN_EXPRESS => self::AMERICAN_EXPRESS,
Core_PaymentMethods::BANK_TRANSFER => self::TRANSFER,
Core_PaymentMethods::BANCONTACT => self::BANCONTACT_MISTER_CASH,
Core_PaymentMethods::MISTER_CASH => self::BANCONTACT_MISTER_CASH,
Core_PaymentMethods::GIROPAY => self::GIROPAY,
Core_PaymentMethods::IDEAL => self::IDEAL,
Core_PaymentMethods::MAESTRO => self::MAESTRO,
Core_PaymentMethods::MASTERCARD => self::MASTERCARD,
Core_PaymentMethods::PAYPAL => self::PAYPAL,
Core_PaymentMethods::SOFORT => self::SOFORTUEBERWEISING,
Core_PaymentMethods::V_PAY => self::V_PAY,
Core_PaymentMethods::VISA => self::VISA,
);

/**
Expand Down

0 comments on commit f2646e7

Please sign in to comment.