我正在尝试在我的网站上使用Nihao付款方式。我做了一切。我从用户区http://betatms.aurfy.com生成了API令牌。它仍然给出这样的错误
{"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 :(得分:0)
Payment GateWay公司出现了一些配置错误。我请他们更新配置。现在,问题解决了。感谢。