【发布时间】:2018-03-01 20:43:24
【问题描述】:
我正在尝试在我的网站中使用你好付款方式。我已经做了一切。我从用户区 http://betatms.aurfy.com 生成了 API Token。它仍然给出这样的错误
{"code":500,"label":"81","message":"merchant config error"}
我找不到错误。我已经正确更新了 config.php。我在自定义 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
【问题讨论】:
-
请发布返回错误的相关代码。
-
问题已更新。谢谢
-
实际调用的代码在哪里?我只看到定义
标签: php payment-gateway payment