Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9 from heidelpay/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
xBlack-Shadow authored Jul 10, 2018
2 parents 47f5471 + 3ee8ba4 commit a669dca
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes - heidelpay Payment Gateway for WooCommerce

## 1.1.1

### Fixed:
- a bug that caused the payment requests to fail in some shops due to an invalid url.

## 1.1.0

### Added
Expand All @@ -17,9 +22,9 @@
- Secured Invoice: added validation on checkout.

### Changed

- payment methods will be deactivated by default.

## 1.0.1

### Fixed
- A bug which caused that the sandbox mode was activated regadless of the state of the switch.
- A bug which caused that the sandbox mode was activated regardless of the state of the switch.
3 changes: 1 addition & 2 deletions includes/abstracts/abstract-wc-heidelpay-iframe-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected function getIFrame( WC_Order $order)

if (method_exists($this->payMethod, $bookingAction)) {
$this->payMethod->$bookingAction(
$host, // PaymentFrameOrigin - uri of your application like https://dev.heidelpay.com
$host,
'FALSE',
$cssPath
);
Expand All @@ -144,7 +144,6 @@ protected function getIFrame( WC_Order $order)
. $this->payMethod->getResponse()->getPaymentFormUrl()
. '" frameborder="0" scrolling="no" style="height:360px;"></iframe><br />';
} else {
$iFrame .= get_home_url() . '/wp-content/plugins/woocommerce-heidelpay/vendor/';
$iFrame .= '<pre>' . print_r($this->getErrorMessage(), 1) . '</pre>';
}
$iFrame .= '<button type="submit">' . __('Pay Now', 'woocommerce-heidelpay') . '</button>';
Expand Down
4 changes: 2 additions & 2 deletions includes/abstracts/abstract-wc-heidelpay-payment-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected function setAsync()
{
$this->payMethod->getRequest()->async(
$this->getLanguage(), // Language code for the Frame
get_permalink(wc_get_page_id('shop')) . 'wc-api/' . strtolower(get_class($this))
get_home_url() . '/wc-api/' . strtolower(get_class($this))
);
}

Expand Down Expand Up @@ -371,7 +371,7 @@ protected function handleFormPost()
*/
protected function getErrorMessage(Response $response = null)
{
if ($response !== null AND $this->payMethod->getResponse() !== null) {
if ($response !== null || $this->payMethod->getResponse() !== null) {
if (!empty($response['code'])) {
return htmlspecialchars($this->messageMapper->getMessage($response->getError()['code']));
}
Expand Down
2 changes: 1 addition & 1 deletion languages/woocommerce-heidelpay.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is distributed under the same license as the heidelpay WooCommerce package.
msgid ""
msgstr ""
"Project-Id-Version: heidelpay WooCommerce 1.1.0\n"
"Project-Id-Version: heidelpay WooCommerce 1.1.1\n"
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/woocommerce-"
"heidelpay\n"
"POT-Creation-Date: 2018-06-15 08:21:52+00:00\n"
Expand Down
4 changes: 2 additions & 2 deletions woocommerce-heidelpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: heidelpay WooCommerce
* Plugin URI: https://dev.heidelpay.com
* Description: heidelpay payment integration for WooCommerce
* Version: 1.1.0
* Version: 1.1.1
* Author: heidelpay
* Author URI: htts://www.heidelpay.com
* Developer: heidelpay
Expand All @@ -29,7 +29,7 @@
/**
* Required minimums and constants
*/
define('WC_HEIDELPAY_VERSION', '1.1.0');
define('WC_HEIDELPAY_VERSION', '1.1.1');
define('WC_HEIDELPAY_MIN_PHP_VER', '5.6.0');
define('WC_HEIDELPAY_MIN_WC_VER', '3.0.0');
define('WC_HEIDELPAY_MAIN_FILE', __FILE__);
Expand Down

0 comments on commit a669dca

Please sign in to comment.