Paypal Pro (直接支払い) を統合するために CI-Merchant ライブラリを使用しようとしていますが、道に迷っています..
英国のサンドボックスをセットアップしました (paypal pro で事前構成された販売者アカウントと、以下の情報 ($params 配列) を持つ購入者アカウントの両方)
これは、私が使用している $params 配列とともに取得している応答 (ステータスが失敗、メッセージなし) です。
Merchant_response Object
(
[_status:protected] => failed
[_message:protected] =>
[_reference:protected] =>
[_data:protected] =>
[_redirect_url:protected] =>
[_redirect_method:protected] => GET
[_redirect_message:protected] =>
[_redirect_data:protected] =>
)
Array
(
[card_type] => Visa
[card_no] => 4269072658337891
[first_name] => Buyer
[last_name] => One
[address1] => 1 Main Terrace
[city] => Wolverhampton
[region] => West Midlands
[postcode] => W12 4LQ
[amount] => 10
[currency] => GBP
[country] => UK
)
コードは次のとおりです。
$this->load->library('merchant');
$this->merchant->load('paypal_pro');
$settings = array(
'username' => '***',
'password' => '***',
'signature' => '***',
'test_mode' => true);
$this->merchant->initialize($settings);
//params array is set through a form submit.
$response = $this->merchant->purchase($params);
echo '<pre>';
print_r($response);
print_r($params);
exit;
これをデバッグする方法を教えてください!
ありがとう、ジョルジュ