集成 PayPal 结账
我有一个以通常方式集成 PayPal 的商店系统,即用户被重定向到 paypal.com 登录并确认付款,然后用户被引导回到我的商店系统中的确认页面。
现在我的客户询问整个过程是否可以在商店内部运行。
我对此有两三个想法(这并不重要,但该网站是基于 PHP 的):
使用 cURL 函数服务器端与 paypal 对话,在商店页面内显示所有必需的表单。 可能不是一个好主意。
使用
按原样显示 paypal 页面。 在我的顶部,这应该可以正常工作,但不会那么漂亮。
使用某种 PayPal API。 我只看到过一些似乎需要 PayPal 专业帐户(针对卖家)的东西,并且仅适用于信用卡付款。
我不是 PayPal 集成方面的专家,当前的解决方案随商店软件一起提供。 如果你们中的任何人能够阐明优点、缺点和不可能的情况,我将非常感激。
I have a shop system that integrates PayPal in the usual way, i.e. the user is redirected to paypal.com to log in and confirm the payment after which the user is directed back at a confirmation page in my shop system.
Now my customer is asking if the entire process can be run inside the shop itself.
I have two or three ideas about this (not that it really matters, but the site is PHP based):
Use cURL functions serverside to talkto paypal, show all required forms inside the shop pages. Probably not a good idea.
Use an
<iframe>
to display the paypal pages as they are. Off the top of my had this should work fine but wouldn't be as pretty.Use some kind of PayPal API. I've only seen something that seems to require a Pro account (for the seller) with PayPal and does only work with credit card payments.
I'm not an expert on PayPal integration, the current solution came with the shop software. If any of you guys could shed some light on the pros, cons and impossibles I'd be very grateful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是几个月前的事,所以可能已经改变了,但据我所知,Paypals API 不允许您将 Paypal 界面完全集成到商店中。 这是因为一旦您离开 PayPal 服务器,他们就会失去控制,并可能对 API 的滥用承担责任。
据我所知,使用 Paypal 进行付款确实需要用户登录他们的 Paypal 帐户,因此 Paypal 不希望将其置于除他们自己的网站之外的任何其他网站的控制之下。
This is from a few months ago, so may have been changed, but from what I remember Paypals APIs do not allow you to integrate a Paypal interface completely into a shop. This is because once you are off the paypal servers they lose control and can be liable for misuse of the API.
From what I remember of it using Paypal for payments does require the user to log into their paypal account and so Paypal do not want this under the control of any other site except their own.
Paypal 提供直接付款作为其 API 的一部分。 这使您无需访问 PayPal 网站即可处理付款。 如文档中所述,您还必须提供快速结账(重定向至 Paypal) ,如果您使用直接付款。
Paypal offers Direct Payment as part of their API. This allows you to process a payment without visiting the PayPal website. As noted in the document, you must also offer Express Checkout (the redirect to Paypal), if you use Direct Payment.
供应商很少这样做,但您可以自定义 PayPal 页面的外观,以便它们与您的网站相匹配。 我很高兴他们很少这样做,因为定制的页面通常类似于屁股。 MySpace 式的经历并没有让我充满财务信心。
我认为拥有 PayPal 帐户的人非常习惯使用 PayPal 付款,如果 PayPal 的东西出现在您的商店中,他们实际上可能不信任您的网站。 如果您只是想吸引使用信用卡的客户,请使用其他服务。
Vendors rarely do this, but you can customize the appearance of your PayPal pages so that they sorta kinda match your web site. I'm glad they rarely do this, because the customized pages generally resemble butt. The MySpace-type experience does not fill me with financial confidence.
I think people that have PayPal accounts are quite accustomed to going off to PayPal to pay for things, and they would probably actually not trust your site if the PayPal stuff appeared inside your shop. If you are just looking to woo credit card using customers, use some other service.