From Paysera version 3.5.3 it is not compatible with WPML String Translation plugin
Single product pages loads 404 for some languages (when it is 3 or more). When disabled Paysera plugin it starts to work again.
It is somehow related to WordPress URL slug: product translation.
I reached out to WPML support, they offered to pass to the Paysera team this link to go global:
https://wpml.org/documentation/support/go-global-program/ to get compatibily togeter.
The support email from [email protected] Paysera about this:
In short: Reach out to WPML about this.
Temporary solution is to Roll back to Paysera 3.5.2 (Other people does the same: https://wpml.org/forums/topic/page-not-found-11/)
P.S. We can’t replace WPML no alternatives really.
After checkout page is loaded text “Please select the country” is not available to translate due to text being hardcoded into JS file. Make this label translatable based via WPML or other plugins.
It seems like translation is not being loaded from server side or smth. https://prnt.sc/Uuqz1Ql3Q4aX
]]><font _mstmutation=”1″ _msttexthash=”4094246″ _msthash=”2324″>I wrote to hostinger.lt saying that you can help me with the problem</font>
<font _mstmutation=”1″ _msttexthash=”34282391″ _msthash=”865″>Kaip matau ?skiepis ?iuo metu yra atnaujintas iki naujausios galimos jo versijos, tod?l ?iuo atveju jums reik?t? susisiekti su pa?iais ?skiepio kūr?jais, kad jie klaid? gal?t? patikrinti nuodugniau. Su jais susisiekti galite ?tai ?ia:</font>
<font _mstmutation=”1″ _msttexthash=”746473″ _msthidden=”1″ _msthash=”866″>?</font>https://www.ads-software.com/support/plugin/woo-payment-gateway-paysera/
<font _mstmutation=”1″></font>Checkout – sovinukas.lt
<font _mstmutation=”1″></font>
]]>Hi, we got the following email after payment:
Having sent the data in accordance with the information provided to the address you specified https://my-address/?lang=en/?wc-api=wc_gateway_paysera, a response was received that did not contain the required text “OK” in the specification or your site was unavailable. Due to this, the payment information will be resent to your server (twice) until the correct response is received. To avoid such messages in the future, your system should send an “OK” response as soon as it receives information from us, and only then perform other actions on your system that may take longer. Our system waits up to 10 seconds for the correct answer.
It seems that it’s due to language path before the Paysera part in the URL. Is there any way to fix it?
]]>How to sort payment options?
Payment cards – first!
Only then
Electronic banking
Hello,
after updating paysera plugin to 3.4.3 I cant add product to cart. I get fatal error. Debug mode giver error to Paysera plugin
]]>If order was made but was not paid, you can still pay it later on, but paysera does not load payment methods and countries, due to the fact that it is checking only for grand total in cart and no where else if cart is 0, no methods are displayed because no payment methods support 0 amount.
Here is the hardcode that made it work:
public function generatePaymentField(): string
{
$billingCountry = strtolower(WC()->customer->get_billing_country());
$paymentField = '';
if ($this->payseraPaymentSettings->isListOfPaymentsEnabled() === true) {
$amount = round(WC()->cart->cart_contents_total * 100);
if ($amount == 0 && isset($wp->query_vars['order-pay']) && absint($wp->query_vars['order-pay']) > 0) {
$order_id = absint($wp->query_vars['order-pay']); // The order ID
$order = wc_get_order($order_id); // Get the WC_Order Object instance
$amount = round($order->get_total() * 100);
}
$countries = $this->getCountries(
$this->payseraPaymentLibraryHelper->getPaymentMethodList(
$this->payseraPaymentSettings->getProjectId(),
$amount,
get_woocommerce_currency(),
$this->getLanguage()
)
);
if (count($countries) > 1) {
$paymentField .= $this->payseraPaymentFrontHtml->buildCountriesList($countries, $billingCountry)
. '<br/>'
;
}
$paymentField .= $this->payseraPaymentFrontHtml->buildPaymentsList(
$countries,
$this->payseraPaymentSettings->isGridViewEnabled(),
$billingCountry
);
} else {
$paymentField = $this->payseraPaymentSettings->getDescription() . '<br/>';
}
if ($this->payseraPaymentSettings->isBuyerConsentEnabled() === true) {
$paymentField .= '<br/>' . $this->payseraPaymentFrontHtml->buildBuyerConsent();
}
return $paymentField;
}
in woo-payment-gateway-paysera/src/Generator/PayseraPaymentFieldGenerator.php
The change is that I have moved: round(WC()->cart->cart_contents_total * 100)
to variable $amount
and then checked whether it is 0 and if true, whether there is order-pay query variable in context and if it is, retrieve order total amount and use it as $amount
. This way it works.
Can you make sure this change appears in upcoming release?
]]>Hi,
Are “Automatic Recurring Payments” with WooCommerce Subscriptions possible now? Other plugins from Revolut and Stripe support this, but I was reading in questions from years ago that it wasn’t possible with Paysera at that time. Is this fixed already ?
regards,
Dimitri
]]>I’ve been looking at error logs and noticed a lot of javascript reference errors coming from Paysera plugin. The underlying issue is pretty simple:
Plugin is loading assets/js/delivery/frontend.ajax.js file which depends on jQuery:
jQuery(document).ready(function($) {
$('.paysera-delivery-terminal-country-selection').on('select2:select', function (e) {
...
This file is registered in woo-payment-gateway-paysera/src/PayseraInit.php, but a dependency for jQuery is not specified:
wp_register_script(
'paysera-delivery-frontend-ajax-js',
PayseraPaths::PAYSERA_DELIVERY_FRONTEND_AJAX_JS,
[], // missing jquery dependency.
false,
true
);
When jQuery is loaded after the the frontend.ajax.js a script throws a reference error.
]]>Hello,
Although card payments are not enabled for me, the updated Paysera plugin shows MasterCard, Maestro during checkout on my website.
When we select this option, it takes us to the Paysera page to make the payment where card option is not available.
Please, any way of removing the MasterCard, Maestro option on checkout page? As this causes confusion when customers think that we do accept card payments but things are not working
Please see link to screen shot:
https://ibb.co/smT6QC9
Await your kind feedback.
Best Regards,
Shoaib Hussain,
Hello,
My website went down suddenly today and I got the below error from wordpress via email:
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.1.1
Active theme: Markite (version 1.0.5)
Current plugin: WooCommerce Payment Gateway – Paysera (version 3.2.4)
PHP version 7.4.33
Error Details
=============
An error of type E_COMPILE_ERROR was caused in line 41 of the file /home/buyemsts/public_html/wp-content/plugins/woo-payment-gateway-paysera/vendor/guzzlehttp/guzzle/src/functions.php. Error message: Cannot redeclare GuzzleHttp\describe_type() (previously declared in /home/buyemsts/public_html/wp-content/plugins/woo-custom-gateway/vendor/guzzlehttp/guzzle/src/functions.php:16)
Please help get this issue fixed.
I had to disable the Paysera WooCommerce plugin to get the website back up!
]]>Doesn’t work anymore. Taking store down completely with the Error: Uncaught Error: Class “Paysera\PayseraInit” not found in \woo-payment-gateway-paysera/paysera.php:42 .
WordPress version 6.1.1
Current plugin: WooCommerce Payment Gateway – Paysera (version 3.2.4)
PHP version 8.1.14
Looking in to paysera.php line 42:
require_once ‘vendor/autoload.php’;
const PAYSERA_MIN_REQUIRED_PHP_VERSION = ‘7.1’;
if (version_compare(PHP_VERSION, PAYSERA_MIN_REQUIRED_PHP_VERSION, ‘>=’)) {
(new PayseraInit())->build(); –42–
Hope that helps to get it fixed ASAP
]]>Hi,
after re-activating project Paysera plugin gives fatal error and disables automatically
.
?skiepis negali būti ?jungtas, nes sukelia?kritin? klaid?.
Fatal error: Uncaught Error: Class ‘Paysera\PayseraInit’ not found in /home/reseller/domains/URL.lt/public_html/wp-content/plugins/woo-payment-gateway-paysera/paysera.php:42 Stack trace: #0 /home/reseller/domains/URL.lt/public_html/wp-admin/includes/plugin.php(2314): include_once() #1 /home/reseller/domains/URL.lt/public_html/wp-admin/plugins.php(192): plugin_sandbox_scrape() #2 {main} thrown in?/home/reseller/domains/URL/public_html/wp-content/plugins/woo-payment-gateway-paysera/paysera.php?on line?42
Hello,
I am facing some error with the Paysera WooCommerce plugin.
My website had gone offline due to this error and then I got an automated message from WordPress informing me of this error and that the website is down due to Paysera Plugin error.
I had to login to WordPress in emergency mode to de-activate the Paysera plugin to get my website back online.
Below is the error from the automated WordPress email I received:
To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.1.1
Active theme: Markite (version 1.0.5)
Current plugin: WooCommerce Payment Gateway - Paysera (version 3.2.4)
PHP version 7.4.33
Error Details
=============
An error of type E_ERROR was caused in line 42 of the file /home/truncated/public_html/wp-content/plugins/woo-payment-gateway-paysera/paysera.php. Error message: Uncaught Error: Class 'Paysera\PayseraInit' not found in /home/truncated/public_html/wp-content/plugins/woo-payment-gateway-paysera/paysera.php:42
Stack trace:
#0 /home/truncated/public_html/wp-settings.php(447): include_once()
#1 /home/truncated/public_html/wp-config.php(93): require_once('/home/truncated/...')
#2 /home/truncated/public_html/wp-load.php(50): require_once('/home/truncated/...')
#3 /home/truncated/public_html/wp-admin/admin.php(34): require_once('/home/truncated/...')
#4 /home/truncated/public_html/wp-admin/edit.php(10): require_once('/home/truncated/...')
#5 {main}
thrown
Please help to get this error resolved as I really enjoy PaySera.
]]>Hello. After site migration to another server the Paysera payment grid has disappeared
Before it was like this
Do you know what the problem could be?
]]>
Hello. We are getting these errors before ajax loads. Do you know what could be the problem?
Hi,
Can you update specific countries in extra settings and add there Kosovo.
Paysera operates also in Kosovo and it supports Kosovo also in plugin, just a mistake is in extra settings field (Specific countries) there is a list with all UN recognized countries, because Kosovo is not fully recognized in UN and it’s not included in that list.
Can you add manually Kosovo in that field.
Thanks ??
]]>WPCLI stops working when Paysera plugin is activated in WP install with custom file/folder structure. The underlying issue is fairly simple, the autoloader.php file is included using relative path:
paysera.php:
require_once ‘vendor/autoload.php’;
Fix:
require_once dirname( __FILE__ ) . ‘/vendor/autoload.php’;
]]>Hello, I’d like to ask if I am running an eCoommerce site, would that be possible with such plugin to somehow make recurring payments? Let’s say I have a product with a price of 100 EUR and for three months I want to charge 33.33 EUR each month automatically from the customer after he agreed and provided credit card information.
If that’s not possible, could you direct where exactly in Paysera should I look for this I know it does provide reccuring payments API, but would another type of agreement is needed to get that or by already having project id and login credentials I can make calls to that API?
Thank you for any information
Best regards,
Elvinas
]]>Hello!
Once it turned out that one of the plugins in my store was in conflict with yours, I decided to post a topic here as well.
It turned out that the PaySera plugin was in conflict with the Customer Reviews for WooCommerce plugin. Both plugins are important to me, but I’m currently turning off PaySera because I have alternative payment methods, but I want to use PaySera as well.
Is it possible to make an adjustment and make your plugin compatible with Customer Reviews for WooCommerce so that they both work together.
*Here is the other topic, where we found about this conflict! https://www.ads-software.com/support/topic/qa-dont-work-need-help/#post-15483183
Thank you in advance!
]]>Hello,
Currently this plugin uses the value of get_bloginfo('wpurl')
to build Paysera payment request callback url. Please refer to PayseraPaymentRequest::buildParameters
method.
The call to get_bloginfo('wpurl')
is basically and equivalent of calling get_site_url()
function which is not the best function to use for any frontend urls, including API endpoints. This value is mostly used in admin area, while get_home_url()
is used for any front-facing urls.
WooCommerce itself uses get_home_url()
to build it’s own wc-api
urls. Please refer to it’s source code: https://github.com/woocommerce/woocommerce/blob/3c9d1353e5b0b30c4613b158ce471cd7b9933472/plugins/woocommerce/includes/wc-core-functions.php#L1070
We are using custom multilingual solution for some websites which appends language code to all frontend urls. This is done via home_url
filter because this is the only correct way to do it.
We also redirect user from root url to default language. I.e. https://example.com is redirected to https://example.com/en/.
Since this plugin uses site_url
option to build it’s callback url, the callback is being sent to root url (i.e. https://example.com/?wc-api=wc_gateway_paysera) which is then redirected to https://example.com/en/?wc-api=wc_gateway_paysera which might not be the language version that user used during checkout. For example if user placed an order via estonian version, the callback will be sent to root url without language code and then redirected to english version. This might cause some inconsistencies in our custom workflow and that tiny redirect is also bothering me.
Please consider using home_url
or get_home_url
functions for building callback requests instead of get_bloginfo('wpurl')
or please make callbackurl
value filterable via WordPress hooks so we can adjust the value ourselves.
Best Regards,
Roman
Hello!
Can you make “description” field under Payments – Extra Settings translateable via WPML?
]]>While Paysera payment method works as expected on checkout page showing all payment options (https://ps.w.org/woo-payment-gateway-paysera/assets/screenshot-1.png?rev=1836969) the order pay page (https://woocommerce.com/document/woocommerce-endpoints-2-1/) is not functioning as expected.
The underlying issue comes from trying to retrieve cart total instead of order total:
woo-payment-gateway-paysera/includes/PayseraPaymentFieldGenerator.php:34
There is also an assumption in javascript file (frontend.js) that #billing_country field is present on the payment page, which is also not a case for order pay page.
]]>Hi, I can’t dismiss the “Paysera Payment And Delivery:
NEW! With the latest version, you can integrate delivery options into your e-shop. More about the Plugin & Services.” notice.
Please don’t litter in the wordpress dashboard, if you really want to show a notice at least let the user dismiss it, it’s plain annoying.
]]>Hello,
we have been using this CSS code
`.paysera-payments .payment-group-wrapper {
display: flex;
flex-wrap: wrap;
}
.paysera-payments div.payment-group-title {
width: 100%;
}
div.paysera-payments.grid div.payment {
margin: 5px;
flex: 1 0 30%;
background: #fff;
}
div.paysera-payments.grid div.payment .paysera-text {
display: none;
}
.paysera-payments div.payment .paysera-image {
margin-left: 0;
}`
to show a better layout for paysera payment options, looked like this: https://puu.sh/IuBuK/edd55c80c9.png
please update this code with current CSS classes,
waiting for your answer,
thanks.
Does the Paysera plugin support “Automatic Recurring Payments” with WooCommerce Subscriptions?
If not, do you have plans to support this in the future?
]]>Hello,
It seems I encountered a problem and cannot fix it. I want to use Paysera check out system on my website, but on checkout after choosing Paysera and trying to pay I get Internal server error. I tried to troubleshoot and disable all plugins and themes except woocommerce and paysera gateway itself and the error persists. I created a wp-debug and this is what I got as an error:
Can somebody help me out how to fix this or what is happening?
[08-Sep-2021 14:03:59 UTC] PHP Fatal error: Uncaught Error: Class 'WebToPay' not found in /home/asialt/domains/asteria.lt/public_html/wp-content/plugins/woo-payment-gateway-paysera/includes/class-wc-paysera-request.php:80
Stack trace:
#0 /home/asialt/domains/asteria.lt/public_html/wp-content/plugins/woo-payment-gateway-paysera/includes/class-wc-paysera-gateway.php(245): Wc_Paysera_Request->buildUrl()
#1 /home/asialt/domains/asteria.lt/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(980): WC_Paysera_Gateway->process_payment()
#2 /home/asialt/domains/asteria.lt/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1195): WC_Checkout->process_order_payment()
#3 /home/asialt/domains/asteria.lt/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(466): WC_Checkout->process_checkout()
#4 /home/asialt/domains/asteria.lt/public_html/wp-includes/class-wp-hook.php(303): WC_AJAX::checkout()
#5 /home/asialt/domains/asteria.lt/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#6 / in /home/asialt/domains/asteria.lt/public_html/wp-content/plugins/woo-payment-gateway-paysera/includes/class-wc-paysera-request.php on line 80
]]>
Hello. I updated the plugin from 2.6.4 to 2.6.6, and it introduced a fatal error:
Warning: require_once(vendor/autoload.php): failed to open stream: No such file or directory in /home/maygos/domains/matematikosknygos.lt/public_html/wp-content/plugins/woo-payment-gateway-paysera/paysera.php on line 26
Fatal error: require_once(): Failed opening required ‘vendor/autoload.php’ (include_path=’.:/usr/share/pear’) in /home/maygos/domains/matematikosknygos.lt/public_html/wp-content/plugins/woo-payment-gateway-paysera/paysera.php on line 26
I was able to get my site back up and running again by using FTP and uploading the older version of the plugin (2.6.4), I was completely locked out, good thing I had a backup! Please fix this bug as fast as you can!
]]>Good day! There is a question about wp + woo and target settings. For payment, the paysera payment gateway is configured. And in google analytic statistics, he perceives the payment page as a source. How to fix it? who faced?
]]>Hi there, currently Paysera payment gateway is loading all payment method images at the same time on the checkout page. This has a huge impact on the loading speed of the page. It would be cool if you can add the loading="lazy"
attribute to images which definitely will improve the situation, this is supported by all modern browsers.
Thanks in advance!