2017-09-20 7 views
1

私のウェブサイトでNihao支払い方法を使用しようとしています。私はすべてをやった。ユーザー領域http://betatms.aurfy.comからAPIトークンを生成しました。それでもこのようなエラーが表示されますNihao Payment Gateway Integrationのヘルプが必要

{"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

エラーを返す関連コードを投稿してください。 – user151841

+0

質問が更新されました。ありがとう –

+0

実際に電話をかけているコードはどこですか?私は定義を見るだけです – user151841

答えて

0

以下の通りです。私は彼らに構成の更新を依頼した。今、問題は解決されています。ありがとう。