简体   繁体   中英

Need help in Nihao Payment Gateway Integration

I am trying to use the Nihao payment method in my website. I have done everything. I generated the API Token from user area http://betatms.aurfy.com . It is still giving the error like this

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

I am unable to find the error. I have correctly updated the config.php. I am using this API in cutom PHP templates.

The config.php code is given below

/**
 * 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

There were some configuration error from the Payment GateWay company. I requested them to update configuration. Now, the problem is solved. Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM