我已经集成instamojo在支付网关笨.我想在instamojo支付网关中启用沙箱模式,我看不到将模式更改为沙箱或测试模式的任何选项.任何人都可以告诉我如何更改它.
先感谢您.
我正在我的网站上实施instamojo付款方式.我可以使用localhost URL作为Webhook URL来测试进程吗?
我从 API https://sample-sdk-server.instamojo.com/status得到了空值 ?” + 当从 instamojo 支付网关屏幕回调时,来自这个 url 的值
我在上面的 url 中传递env并输入transactionId了查询字符串,我得到了类似的结果["payment_id": , "amount": , "status": ]
所以给我任何相同的解决方案
传入sample-sdk-serverurl是否正确?
我目前正在使用instamojo支付网关.
我有相同的付款ID,并使用以下代码获取付款状态
echo $cUrl = 'https://test.instamojo.com/api/1.1/payments/' . $payment_id;
(function_exists('curl_init')) ? '' : die('cURL Must be installed for geturl function to work. Ask your host to enable it or uncomment extension=php_curl.dll in php.ini');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $cUrl);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-Api-Key:90a1c44nmb8ac4e65nmnm3eab5b308cf",
"X-Auth-Token:8164083509a889951fhjhjh1ff89c4"));
$response = curl_exec($ch);
$error_number = curl_errno($ch);
$error_message = curl_error($ch);
curl_close($ch);
$response_obj = json_decode($response, true);
echo "Eror number: $error_number<br />";
echo "Eror message: $error_message<br />";
print_r($response_obj);
if($response_obj['success'] …Run Code Online (Sandbox Code Playgroud)