Git Product home page Git Product logo

Comments (6)

pedramk avatar pedramk commented on July 17, 2024 15

Much appreciated @cracki
SoapClient takes a stream context in its parameters, which you can create yourself. That way you can control almost every aspect of the transport layer. [stackoverflow]

$context = stream_context_create(
  [
     'ssl' => array(
       'verify_peer'       => false,
       'verify_peer_name'  => false
    )
  ]
);

So add this options as second argument when you're creating SoapClient object:

$soap = new SoapClient($this->serverUrl,  [
  'stream_context' => $context
]);

from gateway.

kamrava avatar kamrava commented on July 17, 2024 2

Do you have php-soap installed?

from gateway.

Anisi avatar Anisi commented on July 17, 2024 1

I had same issue before. Usually it's caused by problems of mellat's sever.

from gateway.

thisisamir256 avatar thisisamir256 commented on July 17, 2024 1

I have this error too but dont solve with add $context as second argument

from gateway.

cracki avatar cracki commented on July 17, 2024

Local SSL Error. add:

"stream_context" => stream_context_create(
                    [
                        'ssl' => array(
                            'verify_peer'       => false,
                            'verify_peer_name'  => false,
                        )
                    ]
                )

from gateway.

saber13812002 avatar saber13812002 commented on July 17, 2024

i had this error so i can solve it by adding context as second argument thanks @pedramk

relpace it in

in verifypayment function
in sendPayRequest function
in settleRequest function

like this. https://gist.github.com/saber13812002/5214a510be146d53ac7a8f31676d1fc6

میتونید در یک حرکت محتوای این فایل در لینک بالا را رو جایگزین کنید

from gateway.

Related Issues (20)

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.