Skip to content

Commit

Permalink
Merge pull request #241 from pay-now/release/2.5.3
Browse files Browse the repository at this point in the history
Release/2.5.3
  • Loading branch information
DeveloperMovecloser authored Feb 20, 2024
2 parents 667b99d + cd4c048 commit 5df6063
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 10 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
== Changelog ==

= 2.5.3 (2024-02-20) =

- We have fixed payment security feature

= 2.5.2 (2024-02-02) =

- We have added support for woocommerce blocks
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pay-now/paynow-woocommerce",
"description": "paynow.pl plugin for WooCommerce",
"license": "GPLv3",
"version": "2.5.2",
"version": "2.5.3",
"authors": [
{
"name": "mElements S.A.",
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
=== Pay by paynow.pl ===
Tags: payment, payment gateway, paynow, woocommerce, płatności, payments, bramka płatności
Tested up to: 6.2
Tested up to: 6.4
Requires PHP: 7.1
Stable tag: 2.5.2
Stable tag: 2.5.3
License: GPLv3

**pay**now is a secure online payment by bank transfers, BLIK and card.
Expand Down
2 changes: 1 addition & 1 deletion src/Blocks/Payment/build/paynow-card-block.asset.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php return array(
'dependencies' => array( 'react' ),
'version' => 'cd445b690ee486bceaab',
'version' => '6710366c52f1516041d3',
);
2 changes: 1 addition & 1 deletion src/Blocks/Payment/build/paynow-card-block.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Blocks/Payment/src/js/paynow-card-payment-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ const Content = props => {

if (paymentMethodTokenInputValue) {
data.paymentMethodToken = paymentMethodTokenInputValue;
data.paymentMethodFingerprint = paymentMethodFingerprint
}

data.paymentMethodFingerprint = paymentMethodFingerprint

return {
type: emitResponse.responseTypes.SUCCESS,
meta: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct() {
public function payment_fields() {
$card_payment_methods = $this->get_only_payment_methods_for_type( Type::CARD );
$card_payment_method = $card_payment_methods[0] ?? null;
if ( $card_payment_method && ! empty( $card_payment_method->getSavedInstruments() ) ) {
if ( $card_payment_method ) {
$method_block = 'card';
$idempotency_key = WC_Pay_By_Paynow_PL_Keys_Generator::generate_idempotency_key(
WC_Pay_By_Paynow_PL_Keys_Generator::generate_external_id_from_cart()
Expand Down
7 changes: 6 additions & 1 deletion src/includes/templates/card_payment.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<input type="hidden" name="paymentMethodFingerprint" id="payment-method-fingerprint" value="">
<?php if ( !empty( $instruments ) ): ?>
<p><?php echo __( 'Select a saved card or enter new card details:', 'pay-by-paynow-pl' ); ?></p>
<input type="hidden" name="paymentMethodFingerprint" id="payment-method-fingerprint" value="">
<div class="paynow-payment-option-pbls">
<?php foreach ( $instruments as $instrument ):?>
<div class="paynow-payment-card-option" id="wrapper-<?php echo esc_attr( $instrument->getToken() ); ?>">
Expand Down Expand Up @@ -50,4 +50,9 @@ class="paynow-payment-card-remove --hidden" type="button"
</div>
</div>
<?php include( 'data_processing_info.php' ); ?>
<?php else: ?>
<p><?php echo __( 'You will be redirected to payment provider page.', 'pay-by-paynow-pl' ); ?></p>
<div class="paynow-data-processing-info">
<p><?php echo __( 'Secure and fast payments provided by paynow.pl', 'pay-by-paynow-pl' ); ?></p>
</div>
<?php endif; ?>
4 changes: 2 additions & 2 deletions src/pay-by-paynow-pl.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Plugin Name: Pay by paynow.pl
* Plugin URI: https://github.com/pay-now/paynow-woocommerce
* Description: Accepts secure BLIK, credit cards payments and fast online transfers by paynow.pl
* Version: 2.5.2
* Version: 2.5.3
* Requires PHP: 7.1
* Author: mElements S.A.
* Author URI: https://www.paynow.pl
* License: GPLv3
* Text Domain: pay-by-paynow-pl
* Domain Path: /languages
* Tested up to: 6.2
* Tested up to: 6.4
* WC tested up to: 7.7.0
*
* @package Paynow
Expand Down

0 comments on commit 5df6063

Please sign in to comment.