Skip to content

Commit 8dd754e

Browse files
Release 1.1.7
1 parent a66a246 commit 8dd754e

File tree

8 files changed

+24
-18
lines changed

8 files changed

+24
-18
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ This repository contains the PostFinance Checkout WooCommerce plugin that enable
1313

1414
## Documentation
1515

16-
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.6/docs/en/documentation.html)
16+
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.7/docs/en/documentation.html)
1717

1818
## License
1919

20-
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/1.1.6/LICENSE) for more information.
20+
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/1.1.7/LICENSE) for more information.
2121

2222

2323

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,7 @@
100100
* Tweak - Updated settings page
101101
* Dev - Updated to PostFinance Checkout SDK 1.1.8
102102

103+
= 1.1.7 - July 19, 2018 =
104+
105+
* Dev - Updated to PostFinance Checkout SDK 1.1.9
106+

docs/en/documentation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2>Documentation</h2> </div>
2121
</a>
2222
</li>
2323
<li>
24-
<a href="https://github.com/pfpayments/woocommerce/releases/tag/1.1.6/">
24+
<a href="https://github.com/pfpayments/woocommerce/releases/tag/1.1.7/">
2525
Source
2626
</a>
2727
</li>

includes/admin/class-wc-postfinancecheckout-admin-settings-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function get_settings(){
145145
$settings = array(
146146
array(
147147
'links' => array(
148-
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.6/docs/en/documentation.html' => __('Documentation', 'woo-postfinancecheckout'),
148+
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.7/docs/en/documentation.html' => __('Documentation', 'woo-postfinancecheckout'),
149149
'https://www.postfinance-checkout.ch/user/signup' => __('Sign Up', 'woo-postfinancecheckout')
150150
),
151151
'type' => 'postfinancecheckout_links',

includes/class-wc-postfinancecheckout-migration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private static function parse_update_notice($content, $new_version){
260260
public static function plugin_row_meta( $links, $file ) {
261261
if ( WC_POSTFINANCECHECKOUT_PLUGIN_BASENAME === $file ) {
262262
$row_meta = array(
263-
'docs' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.6/docs/en/documentation.html" aria-label="' . esc_attr__('View Documentation', 'woo-postfinancecheckout') . '">' . esc_html__('Documentation', 'woo-postfinancecheckout') . '</a>',
263+
'docs' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.7/docs/en/documentation.html" aria-label="' . esc_attr__('View Documentation', 'woo-postfinancecheckout') . '">' . esc_html__('Documentation', 'woo-postfinancecheckout') . '</a>',
264264
);
265265

266266
return array_merge( $links, $row_meta );

postfinancecheckout-sdk/lib/Http/SocketHttpClient.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,15 +299,18 @@ private function createSocketStream(ApiClient $apiClient, HttpRequest $request)
299299
if ($proxyUrl !== null) {
300300
$host = parse_url($proxyUrl, PHP_URL_HOST);
301301
$port = parse_url($proxyUrl, PHP_URL_PORT);
302+
if(empty($port)){
303+
throw new ConnectionException($request->getUrl(), $request->getLogToken(), "The Proxy URL must contain a port number.");
304+
}
305+
302306
} else {
303307
$host = ($request->isSecureConnection() ? $this->getSslProtocol() . '://' : '') . $request->getHost();
304308
$port = $request->getPort();
305-
}
306-
307-
$socket = $host;
308-
if(!empty($port)){
309-
$socket .= ':' . $port;
310-
}
309+
if(empty($port)){
310+
$port = $request->isSecureConnection() ? 443 : 80;
311+
}
312+
}
313+
$socket = $host . ':' . $port;
311314

312315
$filePointer = @stream_socket_client($socket, $errno, $errstr, $apiClient->getConnectionTimeout(), STREAM_CLIENT_CONNECT,
313316
$this->createStreamContext($apiClient, $request));

readme.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: customwebgmbh
33
Tags: woocommerce PostFinance Checkout, woocommerce, PostFinance Checkout, payment, e-commerce, webshop, psp, invoice, packing slips, pdf, customer invoice, processing
44
Requires at least: 4.7
55
Tested up to: 4.9
6-
Stable tag: 1.1.6
6+
Stable tag: 1.1.7
77
License: Apache 2
88
License URI: http://www.apache.org/licenses/LICENSE-2.0
99

@@ -23,7 +23,7 @@ To use this extension, a PostFinance Checkout account is required. Sign up on [P
2323

2424
== Documentation ==
2525

26-
Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.6/docs/en/documentation.html).
26+
Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.7/docs/en/documentation.html).
2727

2828
== Installation ==
2929

@@ -52,7 +52,6 @@ Additional documentation for this plugin is available [here](https://plugin-docu
5252
== Changelog ==
5353

5454

55-
= 1.1.6 - July 19, 2018 =
55+
= 1.1.7 - July 19, 2018 =
5656

57-
* Tweak - Updated settings page
58-
* Dev - Updated to PostFinance Checkout SDK 1.1.8
57+
* Dev - Updated to PostFinance Checkout SDK 1.1.9

woocommerce-postfinancecheckout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: WooCommerce PostFinance Checkout
44
* Plugin URI: https://wordpress.org/plugins/woo-postfinancecheckout
55
* Description: Process WooCommerce payments with PostFinance Checkout.
6-
* Version: 1.1.6
6+
* Version: 1.1.7
77
* License: Apache2
88
* License URI: http://www.apache.org/licenses/LICENSE-2.0
99
* Author: customweb GmbH
@@ -43,7 +43,7 @@ final class WooCommerce_PostFinanceCheckout {
4343
*
4444
* @var string
4545
*/
46-
private $version = '1.1.6';
46+
private $version = '1.1.7';
4747

4848
/**
4949
* The single instance of the class.

0 commit comments

Comments
 (0)