Skip to content

Commit

Permalink
Added support for the direct payment method credit card.
Browse files Browse the repository at this point in the history
Added support for the direct payment method iDEAL.
  • Loading branch information
remcotolsma committed Oct 15, 2015
1 parent a9cbed5 commit acea418
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
## [Unreleased][unreleased]
-

## [1.2.3] - 2015-10-15
- Added support for the direct payment method credit card.
- Added support for the direct payment method iDEAL.

## [1.2.2] - 2015-10-14
- Added support for the Ogone TP parameter.

Expand All @@ -28,7 +32,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/ogone/compare/1.2.2...HEAD
[unreleased]: https://github.com/wp-pay-gateways/ogone/compare/1.2.3...HEAD
[1.2.3]: https://github.com/wp-pay-gateways/ogone/compare/1.2.2...1.2.3
[1.2.2]: https://github.com/wp-pay-gateways/ogone/compare/1.2.1...1.2.2
[1.2.1]: https://github.com/wp-pay-gateways/ogone/compare/1.2.0...1.2.1
[1.2.0]: https://github.com/wp-pay-gateways/ogone/compare/1.1.1...1.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": "ogone",
"version": "1.2.1",
"version": "1.2.3",
"description": "Ogone driver for the WordPress payment processing library.",
"repository": {
"type": "git",
Expand Down
15 changes: 14 additions & 1 deletion src/OrderStandard/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright: Copyright (c) 2005 - 2015
* Company: Pronamic
* @author Remco Tolsma
* @version 1.2.1
* @version 1.2.3
* @since 1.0.0
*/
class Pronamic_WP_Pay_Gateways_Ogone_OrderStandard_Gateway extends Pronamic_WP_Pay_Gateway {
Expand Down Expand Up @@ -71,6 +71,19 @@ public function start( Pronamic_Pay_PaymentDataInterface $data, Pronamic_Pay_Pay
// Payment method
// @see https://github.com/wp-pay-gateways/ogone/wiki/Brands
switch ( $payment_method ) {
case Pronamic_WP_Pay_PaymentMethods::CREDIT_CARD :
// @since 1.2.3
$ogone_data_general
->set_payment_method( Pronamic_WP_Pay_Gateways_Ogone_PaymentMethods::CREDIT_CARD );

break;
case Pronamic_WP_Pay_PaymentMethods::IDEAL :
// @since 1.2.3
$ogone_data_general
->set_brand( Pronamic_WP_Pay_Gateways_Ogone_Brands::IDEAL )
->set_payment_method( Pronamic_WP_Pay_Gateways_Ogone_PaymentMethods::IDEAL );

break;
case Pronamic_WP_Pay_PaymentMethods::MISTER_CASH :
$ogone_data_general
->set_brand( Pronamic_WP_Pay_Gateways_Ogone_Brands::BCMC )
Expand Down

0 comments on commit acea418

Please sign in to comment.