Codeigniter 如何调试CI Merchant Paypal Pro集成?

Codeigniter 如何调试CI Merchant Paypal Pro集成?,codeigniter,paypal-sandbox,ci-merchant,Codeigniter,Paypal Sandbox,Ci Merchant,我试图使用CI商户库集成Paypal Pro直接支付,但我迷路了 我已经设置了一个英国沙箱,既有一个用paypal pro预配置的卖家帐户,也有一个信息低于$params数组的买家帐户 以下是我得到的响应状态失败,没有消息以及我正在使用的$params数组: Merchant_response Object ( [_status:protected] => failed [_message:protected] => [_reference:protecte

我试图使用CI商户库集成Paypal Pro直接支付,但我迷路了

我已经设置了一个英国沙箱,既有一个用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;
请让我知道如何调试这个

谢谢,, 乔治在这段代码之后

$settings = $this->merchant->default_settings();
您需要初始化


宾果游戏

如果你自己解决了这个问题,请记得写下解决方案作为答案。这与您的支付页面上没有使用SSL有关吗?我还没有解决这个问题。我怀疑这可能是因为当时没有可用的SSL证书,但我不得不先使用Paypal的示例代码在没有证书的情况下进行测试。我建议在商户响应中添加更详细的信息,而不仅仅是在该实例中设置为失败的状态,并且还可以选择在将来至少在沙箱模式下进行不安全测试!看起来像是一个很棒的图书馆,但不适合我当时的目的time@GeorgesSabbagh我们应该给$settings数组的signature属性赋予什么值?
$settings = $this->merchant->default_settings();