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