I have integrated instamojo payment gateway in Codeigniter. I want to enable sandbox mode in instamojo payment gateway, i can not see any option to change mode to sandbox or test mode.Can anyone tell me how to change that.
Thank You in Advance.
3473 次
1 回答
9
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/的凭据。
于 2016-05-06T04:45:24.260 回答