【问题标题】:Get PayPal transaction fee without using IPN?在不使用 IPN 的情况下获得 PayPal 交易费?
【发布时间】:2013-06-27 15:35:34
【问题描述】:

首先,我知道我已经阅读了一些与此相关的问题,但我无法找到我的查询的明确答案。我希望它可以在这里发布。

相关: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?

我基本上想用 CI Merchant 获得 paypal IPN 返回的内容。

现在我正在调用 purchase_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_feepayment_fee 相关的任何内容?

所以我只是想问,这是否有可能获得与 paypal IPN 返回的相同类型的数据,而无需明显地实际使用它。

当我已经在使用 CI Merchant API 方法时,为了获得诸如 mc_feepayment_fee 之类的其他详细信息,似乎有点落后,必须调用 paypal IPN应该消除必须使用IPN?我不敢相信 API 不返回这种信息。

我是不是完全精神错乱而错过了显而易见的事情?我只是想获得该交易的贝宝费用,以便我可以做一些会计。

这可能吗?

希望有人能解释一下。

谢谢,

【问题讨论】:

    标签: paypal ci-merchant


    【解决方案1】:

    您说得对,CI-merchant 不支持GetExpressCheckoutDetails 方法,并且该方法实际上并没有返回费用。

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

    【讨论】:

      猜你喜欢
      • 2011-09-12
      • 2018-12-20
      • 2011-11-17
      • 2012-11-02
      • 2012-01-01
      • 2021-05-30
      • 2017-05-11
      • 1970-01-01
      • 2014-07-20
      相关资源
      最近更新 更多