我正在尝试使用CI-Merchant库来实现codeigniter。我已经按照建议通过spark安装了这个。ci-merchant.org网站上的文档示例并没有具体显示正在加载的spark,因此我不确定我是否正确使用了系统。任何人都可以看看下面的代码,看看他们是否能发现正在发生的事情。我希望使用"sagepay服务器“作为我的商家,如果这是有帮助的。
致以问候和感谢
$this->load->spark('ci-merchant-2.1.1');
$this->load->library('merchant');
$this->merchant->load('sagepay_servber');
$settings = array(
'vendor' => 'fluidbrandinglt',
'test_mode' => TRUE,
'simulator_mode' => FALSE
);
$this->merchant->initialize($settings);
$params = array(
'amount' => 100.00,
'currency' => 'USD',
'return_url' => 'https://www.example.com/checkout/payment_return/123',
'cancel_url' => 'https://www.example.com/checkout'
);
$response = $this->merchant->purchase($params);当我运行上面的代码时,我只得到一个空白屏幕,没有关于正在发生的事情的反馈。我知道我有一个Sagepay提供给我的加密密码,但我再一次看不到这个密码的配置位置,甚至看不到它是否相关。
发布于 2013-09-04 23:06:52
你应该改变
$this->merchant->load('sagepay_servber');有了。
$this->merchant->load('sagepay_server');load语句中有一个'b‘。细节很小,但确实会让人头疼。
https://stackoverflow.com/questions/17301896
复制相似问题