PayPal REST API(PHP SDK)成功交易未在沙盒模式下显示,在实时模式下显示 [英] PayPal REST API (PHP SDK) successful transactions not showing in sandbox mode, showing in live mode

查看:293
本文介绍了PayPal REST API(PHP SDK)成功交易未在沙盒模式下显示,在实时模式下显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Paypal PHP REST API SDK,正好遵循PayPal提供的示例

I'm using the Paypal PHP REST API SDK, following exactly the samples provided by PayPal here to CREATE and CAPTURE an order.

步骤是:

  1. 创建订单并检索快速结帐URL(输入检索到的URL,登录到我的PayPal沙盒买家帐户,然后批准付款.这会将我重定向到成功URL.

    Enter the retrieved URL, login to my PayPal's sandbox buyer account, and approve the payment. This redirects me to the success URL.

    执行订单( http://paypal.github.io/PayPal-PHP-SDK/sample/doc/payments/OrderGet.html ).

    获取付款( http://paypal.github.io/PayPal-PHP-SDK/sample/doc/payments/OrderCapture.html ).

    所有步骤都成功,我也没有发现任何异常,并且付款和订单状态都很好(订单已完成",付款已批准").

    All steps are successful and I catch no exceptions, and the Payment and Order states are good (Order is "completed" and Payment is "approved").

    交易正在进行中,我可以看到这笔钱正在

    The transaction is happening and I can see the money is being transferred between the test buyer account and the seller under the Sandbox Accounts settings.

    但是,成功交易不会显示在 https://developer.paypal.com/developer/dashboard/sandbox/. 确实会出现失败交易(例如,如果我尝试两次捕获同一笔付款).

    BUT, the successful transactions DO NOT show up under Sandbox Transactions in https://developer.paypal.com/developer/dashboard/sandbox/ . The failed transactions DO show up there (e.g. if I try to capture the same payment twice).

    如果我切换到实时模式,除了在

    If I switch to live mode, it all goes exactly the same except the successful transactions DO show up under Live Transactions. The transaction is being made and the order shows in my account and the buyer's account as "completed".

    我是在做错什么,还是PayPal的沙箱有问题? 沙盒为什么不能反映实时模式下的实际情况?

    Am I doing something wrong, or is there something wrong with PayPal's sandbox? Why doesn't the sandbox reflect what really happens in live mode?

    ,捕获的订单的收据永远不会以任何一种方式发送.发送的唯一电子邮件是:

    Also, the receipt for the captured order is never sent in either mode. The only email sent is:

    您向MyBusiness提交了金额为x.xx的订单

    You submitted an order in the amount of x.xx to MyBusiness

    ,并且明确指出尚未付款.因此,基本上什么都没有告诉买方他已经付了钱.

    and it clearly states the payment is not charged yet. So basically nothing tells the buyer he paid any money.

    推荐答案

    看来这实际上是预期的行为.

    It appears that this is actually the intended behaviour.

    我找到了这些链接(有些链接已经很旧了):

    I found these links (some are quite old):

    • https://www.paypal-community.com/t5/Selling-on-your-website/Not-receiving-capture-funds-email-notifications/td-p/552038?profile.language=en-gb
    • http://www.e-junkie.com/bb/topic/3039#post8545
    • http://www.rdnassociates.com/newsletters/081217.pdf
    • http://eventhorizon1984.typepad.com/event_horizon_1984_blog/2008/12/paypal-ebay-important-paypal-is-eliminating-some-automatic-emails.html

    这似乎表明PayPal在捕获付款后既没有故意向买方也没有向商人发送电子邮件.

    which seems to indicate that PayPal deliberately neither sends an email to the buyer nor to the merchant when the payment is captured.

    有人说他们收到了来自PayPal的电子邮件,类似于以下内容:

    Some says that they received an email from PayPal similar to this:

    厌倦了电子邮件混乱?我们也是.为了使您的生活更轻松,我们删除了一些自动发送的电子邮件 交易后发送.这些更改将于2009年2月11日生效.尽管您将不再收到 某些电子邮件,所有交易详细信息仍会显示在您的PayPal帐户中,以供您保存记录.

    Tired of email clutter? So are we. To make your life easier, we're eliminating some of the automatic emails we send after transactions. These changes will take effect on February 11, 2009. Though you will no longer receive certain emails, all transaction details will still show up in your PayPal account for your record keeping.

    […]

    我们将停止发送的电子邮件是:

    The emails we're discontinuing are:

    • […]
    • 当资金从客户的PayPal帐户中转出时,您收到的电子邮件(商家捕获电子邮件: ID#PP593)
    • 当资金从其PayPal帐户中转出时,您的客户收到的电子邮件(买方捕获电子邮件: ID#PP591)
    • […]
    • […]
    • The email you receive when funds move out of your customer's PayPal account (Merchant capture email: ID# PP593)
    • The email your customer receives when funds move out of their PayPal account (Buyer capture email: ID# PP591)
    • […]

    要查看这些电子邮件的示例,请访问www.paypal.com/discontinuedemails.

    To see examples of these emails, visit www.paypal.com/discontinuedemails.

    谢谢,
    贝宝

    Thanks,
    PayPal

    您可以在自己喜欢的搜索引擎中对[ paypal商家捕获电子邮件" ]或[ paypal"买方捕获电子邮件" ]进行搜索,以查找更多类似的内容

    You can do a search on [paypal "merchant capture email"] or [paypal "buyer capture email"] in your favourite search engine to find more like these.

    我想您必须发送自己的电子邮件.

    I guess you have to send your own emails.

    这是一个可能的问题有关系,但我不确定100%.

    Here's a question that might be related, but I'm not 100% sure.

    这篇关于PayPal REST API(PHP SDK)成功交易未在沙盒模式下显示,在实时模式下显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆