From 6dab6f812da619a084a4423a28ebf539646ab12d Mon Sep 17 00:00:00 2001 From: Masoud Kaviani Date: Fri, 1 Dec 2017 23:37:00 +0330 Subject: [PATCH] Duo to Soap Fault, Error fetching http header --- edd-zarinpal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edd-zarinpal.php b/edd-zarinpal.php index 2b368c6..3eb6637 100644 --- a/edd-zarinpal.php +++ b/edd-zarinpal.php @@ -71,7 +71,7 @@ function zp_process($purchase_data) { $accesspage = ( $edd_options['zp_webgate'] == '1' ) ? 'https://www.zarinpal.com/pg/StartPay/%s' : 'https://www.zarinpal.com/pg/StartPay/%s/ZarinGate'; - $client = new SoapClient($endpoint, array('encoding' => 'UTF-8')); + $client = new SoapClient($endpoint, array('encoding' => 'UTF-8', 'keep_alive' => false)); $data = array( @@ -110,7 +110,7 @@ function zp_verify() { if ($_GET['Status'] == 'OK') { $endpoint = ( $edd_options['zp_deserver'] == '1' ) ? 'https://de.zarinpal.com/pg/services/WebGate/wsdl' : 'https://ir.zarinpal.com/pg/services/WebGate/wsdl'; - $client = new SoapClient($endpoint, array('encoding' => 'UTF-8')); + $client = new SoapClient($endpoint, array('encoding' => 'UTF-8', 'keep_alive' => false)); //$amount = intval( edd_get_payment_amount( $payment_id ) ) / 10; $amount = intval(edd_get_payment_amount($payment_id)) / 10;