我正在使用Paypal PHP REST API SDK,完全按照PayPal here提供的样本来创建和捕获订单 .
步骤是:
-
创建订单并检索快速结账URL(http://paypal.github.io/PayPal-PHP-SDK/sample/doc/payments/OrderCreateUsingPayPal.html) .
-
输入检索到的URL,登录我的PayPal沙箱买家帐户,并批准付款 . 这会将我重定向到成功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) .
所有步骤都是成功的,我没有例外,付款和订单状态良好(订单已“完成”,付款已“批准”) .
交易正在进行,我可以看到资金正在测试买方账户和卖方之间转移Sandbox Accounts settings .
但是,成功的交易不会出现在https://developer.paypal.com/developer/dashboard/sandbox/中的沙箱交易下 . 失败的交易显示在那里(例如,如果我尝试两次捕获相同的付款) .
如果我切换到实时模式,除了在Live Transactions下显示的成功交易外,一切都完全相同 . 正在进行交易,订单显示在我的帐户和买方的帐户中"completed" .
我做错了什么,或者PayPal的沙箱有问题吗? Why doesn't the sandbox reflect what really happens in live mode?
Also ,捕获订单的收据永远不会在任何一种模式下发送 . 发送的唯一邮件是:
您向MyBusiness提交了x.xx金额的订单
它明确表示尚未收取付款 . 所以基本上什么都没告诉买家他付了钱 .
1 回答
看来这实际上是预期的行为 .
我发现这些链接(有些很旧):
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故意既不会在收到付款时向买方或商家发送电子邮件 .
有人说,他们收到了PayPal的电子邮件,类似于:
您可以在自己喜欢的搜索引擎中搜索[ paypal "merchant capture email" ]或[ paypal "buyer capture email" ],以查找更多相似内容 .
我想你必须发送自己的电子邮件 .
Here's a question可能是相关的,但我不是100%肯定 .