2017-09-20 40 views
1

我想在我的網站使用Nihao支付方式。我做了一切。我從用戶區http://betatms.aurfy.com生成了API令牌。它仍然給錯誤這樣需要幫助在Nihao支付網關集成

{"code":500,"label":"81","message":"merchant config error"} 

我無法找出錯誤。我已經正確更新了config.php。我在cutom PHP模板中使用這個API。

的config.php文件代碼如下

/** 
* Merchant config file 
* Please read doc/README.txt first 
*/ 
ini_set('date.timezone','UTC'); 

$server = $_SERVER['SERVER_NAME']; 
$uri = 'http'.(isset($_SERVER['HTTPS']) ? 's' : '').'://'.$server; 
//set demo php path 
//You can view your bearer token in the TMS by logging in and going to Settings -> Certificate -> View API Token. 
define("TOKEN", "API Key will go here"); 

define("API_URL", "https://apitest.nihaopay.com/v1.2");//for test environment 
//define("API_URL", "https://api.nihaopay.com/v1.1");//production environment 

define("RETURN_URL", "https://www.zubairmushtaq.com/ppp/example/response/securepay_notify.php"); 
//you page return url Notice: Return Url can not be localhost 

define("CALLBACK_URL", "https://www.zubairmushtaq.com/ppp/example/response/securepay_notify.php"); 
//you page callback url Notice: Callback Url can not be localhost 


Nihao Website: http://nihaopay.com 
Documentation: https://docs.nihaopay.com/api/v1.2/en 
PHP API: https://github.com/nihaopay/nhpapi_demo 
+0

請發佈返回錯誤的相關代碼。 – user151841

+0

問題已更新。謝謝 –

+0

實際撥打電話的代碼在哪裏?我只是看到定義 – user151841

回答

0

給有來自支付網關公司的一些配置錯誤。我請他們更新配置。現在,問題解決了。謝謝。