larabook / gateway

A Laravel package for connecting to all Iranian Banks
MIT License
242 stars 190 forks source link

خطا در اتصال به درگاه بانک ملت #161

Closed abbasi-hadi closed 4 years ago

abbasi-hadi commented 5 years ago

سلام وقت بخیر ما چند مدتی هست که هنگام اتصال به درگاه بانکی با خطای زیر مواجه میشیم خواهش میکنم بررسی کنین که چرا این خطا ایجاد میشه SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://bpm.shaparak.ir/pgwchannel/services/pgw?wsdl' : failed to load external entity "https://bpm.shaparak.ir/pgwchannel/services/pgw?wsdl" خواهش میکنم هرچه زودتر ی راهنمایی کنین مرسی

saber13812002 commented 5 years ago

i have this error

any solution?

SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://bpm.shaparak.ir/pgwchannel/services/pgw?wsdl' : failed to load external entity "https://bpm.shaparak.ir/pgwchannel/services/pgw?wsdl"

saber13812002 commented 5 years ago

این خطوط رو جایگزین کنید در فایل mellat.php

in verifypayment function in sendPayRequest in settleRequest

مشکل حل میشه

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

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

        //$soap = new \SoapClient($this->serverUrl);

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

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