不使用 Sandbox 的 PayPal 测试
我正在用 PHP 开发一个接受 PayPal 付款的网站。它使用来自 PayPal 的 IPN,并具有自定义付款模板等。这一切通过沙盒服务器运行得很好,但当涉及到向我的客户展示时,我不想告诉他们登录/创建沙盒帐户,创建一个买家帐户并付款 - 他没有时间,而且可能无法做到这一点。
因此,我的问题是 - 有没有什么简单的方法可以让我的客户在“测试模式”下进行 PayPal 集成,而无需他使用沙箱?我意识到我可以将交易值设置为 0.01,然后在实时 PayPal 服务器上进行测试,但这不是一个理想的解决方案。
干杯!
编辑:为了更好地解释我的意思,这是我的客户第一次结账时看到的;
替代文本 http://img3.imageshack.us/img3/2545/67913734.png< /a>
如您所见,他必须先登录自己的 Sandbox 帐户,然后才能使用他设置的买家电子邮件购买商品。这只是令人困惑并且完全不用户友好。
I am developing a website in PHP that accepts PayPal payments. It uses the IPN from PayPal and has a custom payment template etc etc. It all works great through the Sandbox server but when it comes to showing my client, I don't want to have to tell them to login to/create a Sandbox account, create a buyer account and make a payment - he hasn't got time for that and probably won't be able to do it.
Therefore, my question is - is there any simple way that I can show my client the PayPal integration in "test mode" without him using the sandbox? I realise that I can set the transaction value to 0.01 and just test on the live PayPal server but that isn't an ideal solution.
Cheers!
Edit: Just to better explain what I mean, this is what my client sees when he first goes to checkout;
alt text http://img3.imageshack.us/img3/2545/67913734.png
As you can see, he has to login to his Sandbox account before then purchasing the item using the buyer email that he sets up. It's just confusing and totally non user-friendly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,没有办法通过贝宝解决这个问题。他们的沙箱总是要求您登录才能实际演示。
以下是我特别针对远程客户端采取的解决方案。
希望我能提供一个更优雅的解决方案。
Unfortunately there isn't a way around this problem via paypal. Their sandbox will always require you to be logged in to actually demo.
Here are the solutions I have taken especially with remote clients.
Wish I could provide a more elegant solution.
我要做的就是与实际的 PayPal 实时网站集成并使用真实货币。最棒的是您可以退款交易(包括费用),这样就没有人支付任何费用。我相信退款期限为 30 天,但没有理由等待太久并冒险。额外的优势是您可以向客户证明 PayPal 集成确实有效。
如果担心卖家帐户中充斥着测试交易和退款,那么请继续设置一个单独的卖家帐户。只要您不希望您的测试帐户收到数千美元,设置起来就很快。
What I'd do is integrate with the actual PayPal live site and use real money. The great thing is you can refund the transaction (including the fees) so nobody pays anything. I believe the refund timeframe is 30 days, but there's no reason to wait too long and risk it. The added advantage is that you get to prove to your client that the PayPal integration really works.
If there's a concern with littering the seller account with test transactions and refunds then go ahead and set up a separate seller account. It's quick to set up as long as you don't expect your test account to be receiving thousands of dollars.