Forum


TF Shop 1.2.4 mail error

Serhii
7%
Posts: 7
  • TF Shop
March 08, 2022

Hi!

After updating the plugin, payment for the standard PayPal plugin stopped working.

Error when trying to pay: Could not instantiate mail function (I am also attaching a screenshot of the error. ). 

Joomla 4.1.0, TF Shop 1.2.4

Joomla Fry
100%
Posts: 1076
March 08, 2022

Hello

The component has major changes. I am not sure what is causing error in sending emails.

Can you share temporary administrator details at mail@techfry.com, so that I can look into it?

Thank you!

Serhii
7%
Posts: 7
March 08, 2022
Certainly can. What data are you interested in and what do I need to provide?
Joomla Fry
100%
Posts: 1076
March 08, 2022

I need username and password to login to Joomla Administrator.

Serhii
7%
Posts: 7
March 08, 2022
The site is installed locally on my computer. I am a developer of a payment method that I make for my company.
Joomla Fry
100%
Posts: 1076
March 08, 2022

Is Test mail working? Global Configuration -> Server Tab

Serhii
7%
Posts: 7
March 08, 2022
PHP Mail - Could not instantiate mail function. Sendmail - Could not execute: /usr/sbin/sendmail SMTP - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Serhii
7%
Posts: 7
March 09, 2022
In version 1.2.5, the error remained. After disabling all notifications, the plugin started working.
Serhii
7%
Posts: 7
March 09, 2022
In the new POST version, the method of sending a request to the payment system has been replaced by GET. How can I now use the onPaymentPre method to generate a form with hidden fields to send POST data?
Joomla Fry
100%
Posts: 1076
March 09, 2022

The email error is not related to the component. It is related to PHP mailer. May be due to local installed site.

In the new method, payment button is generated by the component, not by the plugin.

The onPaymentPre method takes the order id as argument. In this method, you can get the order details (like amount, email, etc.) from the ID, and then redirect to the payment gateway.

For using POST, you can use cURL.

Are you developing payment gateway for the component?

Serhii
7%
Posts: 7
March 09, 2022
Yes, I'm developing a payment gateway for a component. And the previous version of the method suited me. Our API requires that a payment form be generated, after confirmation of which the buyer is redirected to the page of the payment system. CURL doesn't fit.
Joomla Fry
100%
Posts: 1076
March 10, 2022

Okay, we have again added form based payment redirection by plugin. Please update the extension.

In the component options under Payments tab, you have to enable "form by plugin" field.

Documentation on creating payment gateway will be updated soon.

Login to Reply