成功交易后,Paypal会使用mozilla返回空的$ _POST

时间:2014-06-06 13:01:25

标签: codeigniter paypal

我在chrome和IE中获得$ _POST数据,但在FF中没有。

请帮助我!!

先谢谢。下面是我的代码..我正在使用pay函数将详细信息传递给paypal并在返回函数中获取返回数组。

公共职能薪酬()     {

    $this->paypal_lib->add_field('cmd',"_xclick"); 
    $this->paypal_lib->add_field('cbt',"Return to example"); 
    $this->paypal_lib->add_field('business',"kaushik.savaliya-facilitator@agileinfoways.com"); // Business Email
    $this->paypal_lib->add_field('item_name', 'my product'); // Product Name
    $this->paypal_lib->add_field('amount', '1.00'); // Price        
    $this->paypal_lib->add_field('button_subtype',"services"); 
    $this->paypal_lib->add_field('no_shipping',"1"); 
    $this->paypal_lib->add_field('return',base_url().'paypal/returnpage'); // Return URL
    $this->paypal_lib->add_field('notify_url', base_url().'paypal/ipn'); // <-- IPN url
    $this->paypal_lib->add_field('cancel_return', base_url().'paypal/cancel'); // Cancel URL
    $this->paypal_lib->add_field('currency_code',"USD"); 
    $this->paypal_lib->add_field('image_url',""); 
    $this->paypal_lib->add_field('custom', '112');  // Optional
    $this->paypal_lib->add_field('quantity', '1'); // Quantity      
    $this->paypal_lib->add_field('METHOD', 'GetExpressCheckoutDetails'); // Quantity



    $this->paypal_lib->paypal_auto_form();

}

public function returnpage()
{
    echo '<pre>';
    print_r($_REQUEST);
    exit();

    if(!$this->input->post('payer_id'))
    {
        echo "Success !!";
    }
    else
    {
        echo "Error !!";
    }
}

0 个答案:

没有答案