我需要一個paypal的codeigniter庫(無需重定向到paypal網站),我使用了angell eye paypal庫,但它有一些問題。用於codeigniter的PayPal API
如果您有任何建議,我應該使用哪個庫,但我不想重定向到貝寶網站。我有用戶名,密碼和簽名。
這是我的代碼
$params = array(
'amount' => 100.00,
'currency' => 'USD',
'return_url' => 'https://www.example.com/checkout/payment_return/123',
'cancel_url' => 'https://www.example.com/checkout');
$this->load->library('merchant');
$this->merchant->load('paypal_pro');
$this->load->helper('language');
$settings = array(
'username' => 'sandbo_1215254764_biz_api1.angelleye.com',
'password' => '1215254774',
'signature' => 'AiKZhEEPLJjSIccz.2M.tbyW5YFwAb6E3l6my.pY9br1z2qxKx96W18v',
'test_mode' => true);
$this->merchant->initialize($settings);
$response = $this->merchant->purchase_return($params);
print"<pre>";
print_r($response);die;
謝謝
如果您的問題得到解決。嘗試添加/接受答案。 – mrsrinivas