Skip to content

Commit d2b66a6

Browse files
committed
Release 3.1.3
1 parent 50810e0 commit d2b66a6

File tree

96 files changed

+4873
-6438
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+4873
-6438
lines changed

README.md

-8
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,3 @@ ____________________________________________________________________________
3434
## License
3535

3636
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/3.1.3/LICENSE) for more information.
37-
38-
## Privacy Policy
39-
40-
Please see the [PostFinance Checkout privacy policies site](https://www.postfinance.ch/en/detail/data-protection/general-privacy-policy.html) for more information.
41-
42-
## Terms of Use
43-
44-
Please see the [PostFinance Checkout terms of use site](https://www.postfinance.ch/content/dam/pfch/doc/0_399/00201_en.pdf) for more information.

assets/css/admin.css

+13-19
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
/**
2-
* Plugin Name: PostFinanceCheckout
3-
* Author: postfinancecheckout AG
4-
* Text Domain: postfinancecheckout
5-
* Domain Path: /languages/
2+
* PostFinance Checkout WooCommerce
63
*
7-
* PostFinanceCheckout
8-
* This plugin will add support for all PostFinanceCheckout payments methods and connect the PostFinanceCheckout servers to your WooCommerce webshop (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html).
4+
* This WooCommerce plugin enables to process payments with PostFinance Checkout (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html).
95
*
10-
* @category Class
11-
* @package PostFinanceCheckout
12-
* @author postfinancecheckout AG (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html)
13-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
6+
* @author postfinancecheckout AG (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
148
*/
159
/* Icons for status */
1610
@font-face {
17-
font-family: 'woocommerce-postfinancecheckout';
18-
src: url('../font/woocommerce-postfinancecheckout.eot?8310684');
19-
src: url('../font/woocommerce-postfinancecheckout.eot?8310684#iefix') format('embedded-opentype'),
20-
url('../font/woocommerce-postfinancecheckout.woff2?8310684') format('woff2'),
21-
url('../font/woocommerce-postfinancecheckout.woff?8310684') format('woff'),
22-
url('../font/woocommerce-postfinancecheckout.ttf?8310684') format('truetype'),
23-
url('../font/woocommerce-postfinancecheckout.svg?8310684#woocommerce-postfinancecheckout') format('svg');
24-
font-weight: normal;
25-
font-style: normal;
11+
font-family: 'woocommerce-postfinancecheckout';
12+
src: url('../font/woocommerce-postfinancecheckout.eot?8310684');
13+
src: url('../font/woocommerce-postfinancecheckout.eot?8310684#iefix') format('embedded-opentype'),
14+
url('../font/woocommerce-postfinancecheckout.woff2?8310684') format('woff2'),
15+
url('../font/woocommerce-postfinancecheckout.woff?8310684') format('woff'),
16+
url('../font/woocommerce-postfinancecheckout.ttf?8310684') format('truetype'),
17+
url('../font/woocommerce-postfinancecheckout.svg?8310684#woocommerce-postfinancecheckout') format('svg');
18+
font-weight: normal;
19+
font-style: normal;
2620
}
2721

2822
/* Status Icons */

assets/css/checkout.css

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
/**
2-
* Plugin Name: PostFinanceCheckout
3-
* Author: postfinancecheckout AG
4-
* Text Domain: postfinancecheckout
5-
* Domain Path: /languages/
2+
* PostFinance Checkout WooCommerce
63
*
7-
* PostFinanceCheckout
8-
* This plugin will add support for all PostFinanceCheckout payments methods and connect the PostFinanceCheckout servers to your WooCommerce webshop (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html).
4+
* This WooCommerce plugin enables to process payments with PostFinance Checkout (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html).
95
*
10-
* @category Class
11-
* @package PostFinanceCheckout
12-
* @author postfinancecheckout AG (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html)
13-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
6+
* @author postfinancecheckout AG (https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0)
148
*/
159
/* Order button disabled */
1610
#place_order.postfinancecheckout-disabled{

assets/js/admin/management.js

+30-28
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
*/
1010

1111
jQuery(
12-
function ($) {
12+
function($) {
1313

1414
var wc_postfinancecheckout_management = {
1515

16-
init : function () {
16+
init : function() {
1717
this.handle_refund_button();
1818
this.show_refund_states();
1919
$( '#woocommerce-order-items' ).off( 'click.woo-postfinancecheckout' );
@@ -83,17 +83,17 @@ jQuery(
8383
);
8484
},
8585

86-
handle_refund_button : function () {
86+
handle_refund_button : function() {
8787
if ($( 'span#postfinancecheckout-remove-refund' ).length > 0) {
8888
$( 'div.wc-order-bulk-actions' ).find( 'button.refund-items' )
8989
.remove();
9090
}
9191
},
9292

93-
show_refund_states : function () {
93+
show_refund_states : function() {
9494
$( 'tbody#order_refunds div.postfinancecheckout-refund-status' )
9595
.each(
96-
function () {
96+
function() {
9797
var id = $( this ).data( 'refund-id' );
9898
var state = $( this ).data( 'refund-state' );
9999
var refund_thumb = $(
@@ -114,15 +114,15 @@ jQuery(
114114

115115
},
116116

117-
show_completion : function (event) {
117+
show_completion : function(event) {
118118
var self = event.data.self;
119119

120120
$( 'div.refund-actions' ).children().remove();
121121

122122
$( 'div.wc-order-add-item' ).children(
123123
'button.postfinancecheckout-completion-button'
124124
).each(
125-
function (key, value) {
125+
function(key, value) {
126126
$( value ).show();
127127
$( 'div.refund-actions' ).prepend( $( value ) );
128128
}
@@ -180,7 +180,7 @@ jQuery(
180180
$( 'div.wc-order-refund-items' ).slideDown();
181181
$( 'div.wc-order-item-bulk-edit' ).remove();
182182
$( '#woocommerce-order-items' ).find( 'input.quantity' ).each(
183-
function () {
183+
function() {
184184
$( this ).closest( 'td.quantity' ).find(
185185
'input.refund_order_item_qty'
186186
).val(
@@ -190,7 +190,7 @@ jQuery(
190190
)
191191

192192
$( '#woocommerce-order-items' ).find( 'input.line_total' ).each(
193-
function () {
193+
function() {
194194

195195
$( this ).closest( 'td.line_cost' ).find(
196196
'input.refund_line_total'
@@ -212,7 +212,7 @@ jQuery(
212212
}
213213
)
214214
$( '#woocommerce-order-items' ).find( 'input.line_tax' ).each(
215-
function () {
215+
function() {
216216

217217
$( this ).closest( 'td.line_tax' ).find(
218218
'input.refund_line_tax'
@@ -246,20 +246,20 @@ jQuery(
246246
return false;
247247
},
248248

249-
cancel_completion : function () {
249+
cancel_completion : function() {
250250
location.reload();
251251

252252
return false;
253253
},
254254

255-
update_taxes_for_line_items : function () {
255+
update_taxes_for_line_items : function() {
256256
var initial_amount = $( this ).data( 'postfinancecheckout-initial-amount' );
257257
var current_amount = $( this ).val();
258258
$( this )
259259
.closest( 'tr' )
260260
.find( 'input.refund_line_tax' )
261261
.each(
262-
function () {
262+
function() {
263263
var initial_tax = $( this ).data(
264264
'postfinancecheckout-initial-tax'
265265
);
@@ -288,7 +288,7 @@ jQuery(
288288
);
289289
},
290290

291-
execute_completion : function () {
291+
execute_completion : function() {
292292

293293
$( '#woocommerce-order-items' ).block(
294294
{
@@ -309,7 +309,7 @@ jQuery(
309309
var refund_amount = $( 'input#refund_amount' ).val();
310310

311311
$( '.refund input.refund_order_item_qty' ).each(
312-
function (index, item) {
312+
function(index, item) {
313313
if ($( item ).closest( 'tr' ).data( 'order_item_id' )) {
314314
if (item.value) {
315315
line_item_qtys[$( item ).closest( 'tr' ).data(
@@ -321,7 +321,7 @@ jQuery(
321321
);
322322
$( '.refund input.refund_line_total' )
323323
.each(
324-
function (index, item) {
324+
function(index, item) {
325325
if ($( item ).closest( 'tr' ).data(
326326
'order_item_id'
327327
)) {
@@ -336,7 +336,7 @@ jQuery(
336336
);
337337
$( '.refund input.refund_line_tax' )
338338
.each(
339-
function (index, item) {
339+
function(index, item) {
340340
if ($( item ).closest( 'tr' ).data(
341341
'order_item_id'
342342
)) {
@@ -385,7 +385,8 @@ jQuery(
385385
$.post(
386386
woocommerce_admin_meta_boxes.ajax_url,
387387
data,
388-
function ( response ) {
388+
function(
389+
response) {
389390

390391
if (true === response.success) {
391392
window.alert( response.data.message );
@@ -406,13 +407,13 @@ jQuery(
406407
return false;
407408
},
408409

409-
show_void : function () {
410+
show_void : function() {
410411

411412
$( 'div.refund-actions' ).children().remove();
412413

413414
$( 'div.wc-order-add-item' ).children( 'button.postfinancecheckout-void-button' )
414415
.each(
415-
function (key, value) {
416+
function(key, value) {
416417
$( value ).show();
417418
$( 'div.refund-actions' ).prepend( $( value ) );
418419
}
@@ -457,13 +458,13 @@ jQuery(
457458
return false;
458459
},
459460

460-
cancel_void : function () {
461+
cancel_void : function() {
461462
location.reload();
462463

463464
return false;
464465
},
465466

466-
execute_void : function () {
467+
execute_void : function() {
467468

468469
$( '#woocommerce-order-items' ).block(
469470
{
@@ -488,7 +489,8 @@ jQuery(
488489
$.post(
489490
woocommerce_admin_meta_boxes.ajax_url,
490491
data,
491-
function ( response ) {
492+
function(
493+
response) {
492494

493495
if (true === response.success) {
494496
window.alert( response.data.message );
@@ -506,7 +508,7 @@ jQuery(
506508
return false;
507509
},
508510

509-
update_order : function () {
511+
update_order : function() {
510512

511513
$( '#woocommerce-order-items' ).block(
512514
{
@@ -527,7 +529,7 @@ jQuery(
527529
$.post(
528530
woocommerce_admin_meta_boxes.ajax_url,
529531
data,
530-
function (response) {
532+
function(response) {
531533

532534
if (true === response.success) {
533535
window.location.href = window.location.href;
@@ -541,11 +543,11 @@ jQuery(
541543
return false;
542544
},
543545

544-
restrict_refund_inputs : function (event) {
546+
restrict_refund_inputs : function(event) {
545547
var self = event.data.self;
546548

547549
$( '#woocommerce-order-items' ).find( 'input.line_total' ).each(
548-
function () {
550+
function() {
549551

550552
$( this ).closest( 'td.line_cost' ).find(
551553
'input.refund_line_total'
@@ -564,7 +566,7 @@ jQuery(
564566
}
565567
)
566568
$( '#woocommerce-order-items' ).find( 'input.line_tax' ).each(
567-
function () {
569+
function() {
568570

569571
$( this ).closest( 'td.line_tax' ).find(
570572
'input.refund_line_tax'

assets/js/frontend/blocks/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ How to modify this project
3939
==========================
4040

4141
If you need to modify the source code of this project, you need to build the project. Everything needed is already configured in the package.json file.
42-
If you have not done it before, you need to first install the dependencies needed by the project by running:
42+
If you have not done it before, you need to fist install the dependencies needed by the project by running:
4343

4444
`npm install`
4545

46-
Please notice that you need at least npm version 10 or up.
47-
4846
After you have saved your changes, build the project by running:
4947
`npm run build`
5048

Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
<?php return array(
2-
'dependencies' => array(
3-
'@woocommerce/blocks-registry',
4-
'react',
5-
'wp-polyfill',
6-
),
7-
'version' => '95e2ee718829327fb379',
8-
);
1+
<?php return array('dependencies' => array('@woocommerce/blocks-registry', 'react', 'wp-polyfill'), 'version' => '62bb6a74015c35f7df1a');

assets/js/frontend/blocks/build/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)