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
請發佈返回錯誤的相關代碼。 – user151841
問題已更新。謝謝 –
實際撥打電話的代碼在哪裏?我只是看到定義 – user151841