我将paypal lib集成到我的CI this one
中我的问题是在交易完成后(点击立即付款按钮)它失败了,它不会将我重定向回到成功页面,只有我点击这个在paypal沙箱返回exampletestemail@gmail.com。
表格:
function form()
{
$this->load->view('partials/header');
$this->paypal_lib->add_field('business', 'levent_1339564698_per@gmail.com');
$this->paypal_lib->add_field('return', site_url('paypal/success'));
$this->paypal_lib->add_field('cancel_return', site_url('paypal/cancel'));
$this->paypal_lib->add_field('notify_url', site_url('paypal/ipn')); // <-- IPN url
$this->paypal_lib->add_field('custom', '1234567890'); // <-- Verify return
$this->paypal_lib->add_field('item_name', $this->config->item('site_name') . ' Premium upgrade');
// $this->paypal_lib->add_field('item_number', '6941');
$this->paypal_lib->add_field('amount', '5');
// if you want an image button use this:
$this->paypal_lib->image('button_09.gif');
// otherwise, don't write anything or (if you want to
// change the default button text), write this:
// $this->paypal_lib->button('Click to Pay!');
$data['paypal_form'] = $this->paypal_lib->paypal_form();
$this->load->view('paypal/form', $data);
$this->load->view('partials/footer');
}
成功功能
function success()
{
$data['pp_info'] = $_POST;
$this->load->view('paypal/success', $data);
}
我在网上看了很多,发现了一些解决方案,但没有人告诉我如何解决。
有人可以给我一个提示吗?
谢谢