Giter VIP home page Giter VIP logo

Comments (14)

shazzad avatar shazzad commented on July 18, 2024

Did you configured ssl key & certificate file path ?

from woocommerce-gateway-stcpay.

mashour06 avatar mashour06 commented on July 18, 2024

Hello Sir,
Thank you for your reply. I can now enable the gateway after entering the private key file (this one was missing). But there is another issue, there is an error message stating that: "Could not process your request. Please try later, or use other payment gateway". The log file gives me the following error:
2023-09-15T12:12:13+00:00 INFO Stcpay API Error: cURL error 58: could not load PEM client certificate, OpenSSL error error:0909006C:PEM routines:get_name:no start line, (no key found, wrong pass phrase, or wrong file format?).
I have a .pfx file which I entered its path too. the merchant ID is correct. I tested every thing in postman and every thing is working properly. but from the website it's not working. I'm testing on localhost.

from woocommerce-gateway-stcpay.

shazzad avatar shazzad commented on July 18, 2024

I have removed the ssl certificate dependency. Try removing the ssl certificate setting fields value.

from woocommerce-gateway-stcpay.

mashour06 avatar mashour06 commented on July 18, 2024

I removed the values for the following fields:
Production SSL Cert File
Production SSL Key File
Production SSL Key Password
But unfortunately the problem didn't resolve. Now I get this log error:
INFO Stcpay API Error: Invalid merchant id or ssl certificates

from woocommerce-gateway-stcpay.

shazzad avatar shazzad commented on July 18, 2024

In that case stcpay gateway still requires the ssl certificate files to be defined.

Then you should try to debug your ssl certificate based on the error log you received earlier.
Reference: https://stackoverflow.com/a/63042717

from woocommerce-gateway-stcpay.

mashour06 avatar mashour06 commented on July 18, 2024

Sir, I entered the path to pfx file like this:
C:\wamp64\www\asfarok_2_9_2023\wp-content\plugins\woocommerce-gateway-stcpay\pfx\asfarokPfx.pfx
Is entering an absolute path like this correct? I'm working on localhost on windows machine.

from woocommerce-gateway-stcpay.

mashour06 avatar mashour06 commented on July 18, 2024

I changed the pfx file to .pem file and the payment completed without entering the OTP that has been sent to the mobile. the system didn't give me any thing to enter the OTP and the payment completed. What is the problem and how to solve it?

from woocommerce-gateway-stcpay.

mashour06 avatar mashour06 commented on July 18, 2024

Any help would be greatly appreciated.

from woocommerce-gateway-stcpay.

shazzad avatar shazzad commented on July 18, 2024

Can you shot a video of the whole checkout process ? As far i remember, the OTP should be entered on stcpay hosted confirmation page.

This plugin was developer few years ago, and not maintained with the latest changes.

from woocommerce-gateway-stcpay.

mashour06 avatar mashour06 commented on July 18, 2024

Hello Sir,
Here is the video and image, the image is a screenshot from the mobile phone with 2 messages: a message with the OTP code, and the other message is indicating that the payment was approved and the order placed (directly without entering the OTP code), and there was no field appeared to enter the OTP code.

stc-video.mp4

stcpay

from woocommerce-gateway-stcpay.

mashour06 avatar mashour06 commented on July 18, 2024

Hello,
Did you find any solution?

from woocommerce-gateway-stcpay.

amrith-am avatar amrith-am commented on July 18, 2024

INFO Stcpay API Error: cURL error 6: Could not resolve host: b2btest.stcpay.com.sa

from woocommerce-gateway-stcpay.

amrith-am avatar amrith-am commented on July 18, 2024

I got this error

from woocommerce-gateway-stcpay.

shazzad avatar shazzad commented on July 18, 2024

The error indicates that their testing server url has changed. Please contact with them for the new URL.

Also, it's been a while since this plugin was last updated. If they make changes to their api, the plugin won't work without modification.

from woocommerce-gateway-stcpay.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.