alexminza / wc-moldovaagroindbank

WooCommerce maib Moldova Agroindbank Payment Gateway
https://wordpress.org/plugins/wc-moldovaagroindbank/
GNU General Public License v3.0
15 stars 3 forks source link

Transaction ID not received from Moldova Agroindbank #2

Closed cnelindiahwe closed 5 years ago

cnelindiahwe commented 5 years ago

Plugin is showing “Transaction ID” error.

Link here https://webpay.pcfirstaid.com/dp/shop/

I have setup the plugin properly.

Screenshot: https://screenshots.firefox.com/7tGDhKtBUp22nuHK/webpay.pcfirstaid.com

And i added “Private key passphrase” from Cpanel to plugin setting.

Screenshot: http://cnelindia.com/support/admin/uploads/1590847110-s2.png

Please check it how we can fix this issue?

I am waiting your response.

Thanks

alexminza commented 5 years ago

@cnelindiahwe it seems from your screenshot that you have not properly configures the PEM certificates/key. You need to upload the keys to your web server, set file system permissions to properly secure the files and configure them in the plugin settings by providing the full path to the files.

alexminza commented 5 years ago

There is a newer version under development that will make this setup process easier for beginners, but the current version requires some fair knowledge of the OS and certificates/keys configuration to configure the plugin.

cnelindiahwe commented 5 years ago

Any idea on how to secure the files and configure them in the plugin settings?

I have done setup the private key to this way. Please check the screenshot.

s3

But gateway still not working.

Where i am wrong?

alexminza commented 5 years ago

You need to upload the certificate and private key files to the web server and configure the file paths in the plugin settings. Currently, you have just some default values like cacert.pem, pcert.pem, key.pem.

PS: You should delete the screenshot with your private key and keep it strictly private and secured.

alexminza commented 5 years ago

There will be a new version of the plugin soon, which will allow for easier certificates configuration for beginners - directly uploading the PFX certificate received from the bank. Stay tuned!

alexminza commented 5 years ago

@cnelindiahwe get the new plugin version 1.1 from WordPress.org and configure the bank connection with the new improved and simplified setup interface.

cnelindiahwe commented 5 years ago

Hello,

I updated plugin to latest version 1.1.

I successfully uploaded my (0149583.pfx) file in plugin setting. Please check screenshot in below.

Please check path of .pem files, Is it ok or not? But plugin following error are still showing.

"Certificate Authority (CA) bundle: Invalid value Client certificate file: Invalid value Private key file: Invalid value"

Please can you help me? What i am missing now?

Thanks

cnelindiahwe commented 5 years ago

Hello,

I seen following installation notes on here (https://wordpress.org/plugins/wc-moldovaagroindbank/)

Configure the plugin Connection Settings by performing one of the following steps: BASIC: Upload the PFX client certificate file received from the bank ADVANCED: Convert and upload the private key and certificates PEM files to the server and securely set up the owner and file system permissions

=> I uploaded done PFX file. => I don't see PEM file on over server cpanel. How i can get these file? The main issue of these files.

Thanks

alexminza commented 5 years ago

@cnelindiahwe it seems that you are confusing the cPanel SSL/TLS certificates which are used to enable HTTPS on your website with certificates used by the plugin to connect securely to the bank.

You need to use the plugin settings page to configure the certificates received from the bank. If you configure the bank connection using the Basic settings you do not need to set the PEM files paths manually as the plugin will configure those automatically for you.

After you have uploaded the PFX file (and set up the certificate password) you need to make a test payment.

https://wordpress.org/plugins/wc-moldovaagroindbank/#installation

cnelindiahwe commented 5 years ago

@alexminza Okay, i just uploaded PFX file on plugin configure setting. The PFX file was done by the host company - who installed the certificate themselves. But i have no "Certificate / private key passphrase".

Where from i can get this? Will that provide it who provided PFX file?

alexminza commented 5 years ago
screenshot 2018-12-13 at 12 26 33
cnelindiahwe commented 5 years ago

Okay, Then i uploaded PFX file only and saved the plugin setting. But following errors are showing in logs.

And showing error during checkout the payment.

alexminza commented 5 years ago

You need to upload the PFX certificate received from the bank. Once again - do not confuse HTTPS certificates for your websites, and the certificates from your bank.