簡體   English   中英

Hipay付款網關集成php中的響應

[英]Hipay payment Gateway integration Response in php

我使用的是hipay錢包測試帳戶,並使用了那里的Web服務進行集成。 事務工作正常,但問題是我沒有在頁面中得到響應,應該在響應頁面上獲得$ _POST ['xml']

$ setUrlAck = show_page_link(“ payment / hipay_new / response.php”,true);

下面是我的代碼

if ($PaymentDetails['sel_payment_env'] == 1) {
        $wsdl = 'https://ws.hipay.com/soap/subscription?wsdl'; //for live
    } else {
        $wsdl = 'https://test-ws.hipay.com/soap/subscription?wsdl';//for testing
    }
    // If the payment is accepted, the user will be redirected to this page
    $setURLOk= show_page_link(FILE_THANKS."?add=success&OrderNo=".$orderid,true);

    // If the payment is refused, the user will be redirected to this page
    $setUrlNok=show_page_link(FILE_THANKS."?cancleMsg=true",true);

    // If the user cancels the payment, he will be redirected to this page
    $setUrlCancel=show_page_link(FILE_THANKS."?cancleMsg=true",true);

    // The merchant?s site will be notified of the result of the payment by a call to the script
    $setUrlAck =show_page_link("payment/hipay_new/response.php",true); 

    $initArray = array(

            'wsLogin' => $wsLogin,              // Your wsLogin
            'wsPassword' => $wspassword,            // Your wsPassword
            'websiteId' => $txt_Merchant,           // Your webSiteId
            'categoryId' => $PaymentDetails['txt_category_id'],     // Your website category ID (https://test-payment.hipay.com/order/list-categories/id/(websiteId))
            'customerEmail' => $customer_email,                     // Your customers' email
    );
    $options = array(
            'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP,
            'cache_wsdl' => WSDL_CACHE_NONE,
    );

    $client = new SoapClient($wsdl, $options);
    $data = array(
            'currency' => $currency_code,
            'rating' => 'ALL',
            'locale' => 'fr_FR',
            'manualCapture' =>1,
            'label' => 'My label is a Manged Subscrption Test Service ',
            'customerIpAddress' => $_SERVER["REMOTE_ADDR"],
            'merchantReference' => 'AZERTY',
            'urlCallback' => $setUrlAck, // Here in this page i'm suppossed to get the response in $_POST
            'urlAccept' => $setURLOk,
            'urlCancel' =>$setUrlCancel,
            'payments' => array(
                    'initial' => array(
                            'name' => 'Payment',
                            'description' => 'Payment for printing products',
                            'amount' => $price,
                            'subscriptionId' => 'QWERTY',
                            'periodType' => 'normal',
                            'recurrence' => array(
                                    'frequency' => 0,
                                    'duration' => 'managed'
                            ),
                    ),
            ),
    );

如果有人遇到同樣的問題,請指導我

問題已解決,問題是我的防火牆設置阻止了響應

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM