Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [1.3.5] - 2023-09-22
### Fixed
- Fixed item amount type missmatch
- Fixed item amount type mismatch

## [1.3.4] - 2023-09-21
### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Your Paytrail credentials. You can obtain the keys by registering at our [websit

### Fallback Country

Setup fallback country to be used if no country is provided from Woocommerce checkout. Use only if billing_country/shipping_country is removed from checkout fields.
Setup fallback country to be used if no country is provided from WooCommerce checkout. Use only if billing_country/shipping_country is removed from checkout fields.

### Token migration ###

Expand Down
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ protected function __construct() {

// Enqueue jQuery
add_action('admin_enqueue_scripts', array($this, 'enqueue_jquery'));
add_action('admin_enqueue_scripts', array($this, 'enque_jquery_scripts'));
add_action('admin_enqueue_scripts', array($this, 'enqueue_jquery_scripts'));
}

/**
Expand Down Expand Up @@ -176,7 +176,7 @@ public static function register_intro_scripts() {
/**
* Enqueue jQuery UI from WordPress core
*/
public function enque_jquery_scripts($hook) {
public function enqueue_jquery_scripts($hook) {
if ($hook == 'woocommerce_page_wc-settings' && isset($_GET['tab']) && $_GET['tab'] == 'checkout' && isset($_GET['section']) && $_GET['section'] == 'paytrail') {

wp_enqueue_script('jquery');
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ With test credentials, you can test most of the payment methods included in Payt
- Fixed rounding row negative amount

= 1.3.5 =
- Fixed item amount type missmatch
- Fixed item amount type mismatch

= 1.3.4 =
- Added WP code linter tests
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/AbstractController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Paytrail for Woocommerce payment Abstract controller class
* Paytrail for WooCommerce payment Abstract controller class
*/

namespace Paytrail\WooCommercePaymentGateway\Controllers;
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/Callback.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Paytrail for Woocommerce payment Callback controller class
* Paytrail for WooCommerce payment Callback controller class
*/

namespace Paytrail\WooCommercePaymentGateway\Controllers;
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/Card.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Paytrail for Woocommerce payment Card controller class
* Paytrail for WooCommerce payment Card controller class
*/

namespace Paytrail\WooCommercePaymentGateway\Controllers;
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/CardCancel.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Paytrail for Woocommerce payment Card cancel controller class
* Paytrail for WooCommerce payment Card cancel controller class
*/

namespace Paytrail\WooCommercePaymentGateway\Controllers;
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/CardSuccess.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Paytrail for Woocommerce payment Card success controller class
* Paytrail for WooCommerce payment Card success controller class
*/

namespace Paytrail\WooCommercePaymentGateway\Controllers;
Expand Down
4 changes: 2 additions & 2 deletions src/Gateway.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Paytrail for Woocommerce payment gateway class
* Paytrail for WooCommerce payment gateway class
*/

namespace Paytrail\WooCommercePaymentGateway;
Expand Down Expand Up @@ -1265,7 +1265,7 @@ private function create_normal_payment( $payment, $order, $payment_provider) {
$this->log($exception->getMessage() . $exception->getTraceAsString(), 'error');
new \WP_Error($exception->getCode(), $exception->getMessage());

//Add error messages to be displayed to the user by Woocommerce
//Add error messages to be displayed to the user by WooCommerce
$exceptionError = $exception->getMessage();
$jsonData = json_decode($exceptionError, true);

Expand Down
4 changes: 2 additions & 2 deletions src/Helper.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Paytrail for Woocommerce payment Helper class
* Paytrail for WooCommerce payment Helper class
*/

namespace Paytrail\WooCommercePaymentGateway;
Expand Down Expand Up @@ -44,7 +44,7 @@ public static function getIsChangeSubscriptionPaymentMethod() {
}

/**
* Currency specific formattings
* Currency specific formatting
*
* @param int|double $sum The sum to format.
* @return integer
Expand Down
2 changes: 1 addition & 1 deletion src/Model/PaymentSubscriptionMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function execute() {
}
foreach ($this->subscriptions as $subscription) {
$subscription->set_payment_method('paytrail');
$subscription->set_payment_method_title('Paytrail for Woocommerce');
$subscription->set_payment_method_title('Paytrail for WooCommerce');
$subscription->save();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Router.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Paytrail for Woocommerce payment router class
* Paytrail for WooCommerce payment router class
*/

namespace Paytrail\WooCommercePaymentGateway;
Expand Down
2 changes: 1 addition & 1 deletion src/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function render( $data = null) {
}

/**
* Get a complate template path by a template name.
* Get a complete template path by a template name.
*
* @param string $template Template name to work with.
* @return string The complete path.
Expand Down
4 changes: 2 additions & 2 deletions src/View/Intro-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
</p>
</div>
</div>
<div classs="paytrail-intro-support" style="display:flex;align-items: center;justify-content:center;width:100%;background-color:#D92D83;">
<div class="paytrail-intro-support" style="display:flex;align-items: center;justify-content:center;width:100%;background-color:#D92D83;">
<?php
$customer_service_link = 'https://www.paytrail.com/en/customer-service#merchants/';
?>
<h2 style="font-weight:300;color:#fff;">
<?php /* translators: <b>Need help?</b> Dont hesitate to <a href="%s" target="_blank" style="color:#fff;">contact support!</a> */ echo sprintf(__('<b>Need help?</b> Dont hesitate to <a href="%s" target="_blank" style="color:#fff;">contact support!</a>'), esc_html($customer_service_link)); ?>
</h2>
</div>
<div classs="paytrail-intro-footer" style="display:flex;align-items: center;justify-content:center;padding-top:25px;padding-bottom:25px;width:calc(100% - 2px);background-color:#fff;;border:1px solid #D92D83;">
<div class="paytrail-intro-footer" style="display:flex;align-items: center;justify-content:center;padding-top:25px;padding-bottom:25px;width:calc(100% - 2px);background-color:#fff;;border:1px solid #D92D83;">
<div style="display:inline-block;width:24%;text-align:center;font-size:0px;">
<p style="font-weight:bold;font-size:15px;margin-bottom:0px;margin-top:0px;"><?php esc_html_e('I just want to try it', 'paytrail-for-woocommerce'); ?></p>
</div>
Expand Down