不使用IPN获得PayPal交易费?

时间:2013-06-27 15:35:35

标签: paypal ci-merchant

首先,我知道似乎有一些与此相关的问题,我已阅读过,但我无法找到对我的查询的明确答案。我希望它可以在这里张贴。

相关:receive more response data in ci-merchant library codeigniter

相关:How do I get the information returned in the IPN after a transaction in PayPal using ci_merchant library?

我基本上想要获得paypal IPN与CI Merchant一起返回的内容。

现在我正在调用buy_return(),这很棒并返回如下内容:

Merchant_paypal_api_response Object
(
    [_status:protected] => complete
    [_message:protected] => 
    [_reference:protected] => XXXXX
    [_data:protected] => 
    [_redirect_url:protected] => 
    [_redirect_method:protected] => GET
    [_redirect_message:protected] => 
    [_redirect_data:protected] => 
)

我知道CI Merchant实际上没有GetExpressCheckoutDetails调用,其中包含有关该事务的更多详细信息。

但根据此处:https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/integration-guide/ECGettingStarted/该电话无论如何都不会返回与 mc_fee payment_fee 有关的内容?

所以我只是想问这是否有可能获得PayPal IPN返回的相同类型的数据而不显然实际使用它。

当我已经在使用CI Merchant API方法时,为了获得其他详细信息,例如 mc_fee payment_fee ,我们还需要调用paypal IPN应该消除不得不使用IPN?我无法相信API不会返回此类信息。

我是否完全精神错乱并错过了明显的错误?我只是想得到该交易的paypal费用,所以我可以做一些会计我的结束。

这可能吗?

希望有人能说清楚。

谢谢,

1 个答案:

答案 0 :(得分:0)

您是对的,CI商家不支持GetExpressCheckoutDetails方法,并且该方法实际上不会返还费用。

您可能有更多的运气调查PayPal GetTransactionDetails方法,这似乎返回费用。您需要更改CI-merchant以添加此功能,或者只是单独调用它。

相关问题