我在 Codeigniter 中集成了 instamojo 支付网关。我想在 instamojo 支付网关中启用沙盒模式,我看不到任何将模式更改为沙盒或测试模式的选项。谁能告诉我如何更改它。
先感谢您。
最佳答案
Instamojo
类初始值设定项接受可用于指定 API URL 的第三个参数,它默认为:https://www.instamojo.com/api/1.1/
因此对于测试环境你可以这样做:
$api = new Instamojo\Instamojo(
'[API_KEY]',
'[AUTH_TOKEN]',
'https://test.instamojo.com/api/1.1/');
请注意,要使其正常工作,您必须在 https://test.instamojo.com 上创建一个帐户首先,还要确保您使用的是来自 https://test.instamojo.com/developers/ 的凭证.
关于php - 如何启用 instamojo 沙箱(测试模式)模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37048708/