Paypal Express Checkout和网站付款标准之间的API差异 [英] API differences between Paypal Express Checkout and Website Payment Standard
问题描述
我试图了解Paypal的Express Checkout和网站付款标准之间的API区别.我知道面对用户的差异(Express Checkout迫使您拥有Paypal帐户,而Website Payment Standard也处理信用卡),但是我不知道如何以编程方式与它们进行交互(特别是从Rails应用程序中)之间的差异. Active Merchant表示它支持Express Checkout,但未提及网站付款标准.对于重复付款,我发现了此宝物,但它只提到了Express Checkout.它与网站付款标准(如果有的话)如何运作?
I'm trying to understand the API differences between Paypal's Express Checkout and Website Payment Standard. I know the user-facing differences (Express Checkout forces you to have a Paypal account, while Website Payment Standard also processes credit cards), but I don't know the differences between how you can interface with them programmatically, specifically from a Rails app. Active Merchant says that it supports Express Checkout but doesn't mention Website Payment Standard. For recurring payments, I found this gem, but it only mentions Express Checkout. How does it function (if at all) with Website Payment Standard?
我知道Paypal有多个API,并且Active Merchant通过Paypal的SOAP端点进行通信时,您还可以通过基于URL的API进行通信.我只是感到困惑,因为文档过多,以至于很难理解什么适用于什么.
I realize Paypal has multiple APIs, and that while Active Merchant communicates via Paypal's SOAP endpoints, you can also communicate via their URL-based API. I'm just getting confused because there is such an overload of documentation that it's difficult to understand what works with what.
编辑-明确地说,我接受信用卡的意思不是强迫用户拥有Paypal帐户-仅将Paypal用作信用卡网关(例如AuthNet).我知道信用卡可以绑定到您的Paypal帐户,而这不是我在说的.
EDIT - To clarify, what I mean by accepting credit cards is not forcing the user to have a Paypal account - having Paypal function solely as a credit card gateway (like AuthNet, for example). I know that credit cards can be tied to your Paypal account, and this is not what I am talking about.
谢谢!
推荐答案
我将再试一次,而不是编辑我以前编辑过的答案.
Rather than edit my previously edited answer, I'm going to try again.
快速结帐"作为使用Paypal进行付款"选项,位于您现有的付款解决方案旁边.它具有更完整的API,仅要求您的客户离开您的网站以输入其付款信息. 此处
Express Checkout was made to sit next to your existing payment solution as a "Pay with Paypal" option. It has a more full API, and only requires your customers to leave your site to enter their payment information. There is a more detailed writeup here
为澄清起见,是的,Paypal的Express Checkout和网站付款标准均允许您接受来自来宾帐户"(没有Paypal帐户的客户)的付款.
For clarification, YES, both Paypal's Express Checkout and Website Payment Standard allow you to accept payments from "Guest Accounts" (Customers without paypal accounts.)
我同意文档有时会令人困惑.既然您提到了Rails,这就是如何通过Active Merchant在Express Checkout中启用来宾帐户".
I agree that the documentation is sometimes confusing. Since you mention Rails, here is how to enable "Guest Accounts" in Express Checkout with Active Merchant.
我认为快速结帐仅适用于企业帐户(不适用于个人帐户).如果您有企业帐户,则可以在贝宝配置文件中找到一个设置-Profile>My selling tools>Selling Online>Website preferences
向下滚动至PayPal Account Optional
并选择On
单选按钮.
I believe express checkout is only available for business acccounts (not personal). If you have a business account, you will find a setting in your paypal profile - Profile>My selling tools>Selling Online>Website preferences
Scroll down to PayPal Account Optional
and select the On
radio button.
编辑:显然,该选项可以在Profile>Website Payment Preferences>Paypal Account Optional
Apparently this option can be found under Profile>Website Payment Preferences>Paypal Account Optional
然后使用Active Merchant,使用allow_guest_checkout
调用paypal(此代码基于快速结帐时的railscast 集)
Then using Active Merchant, call paypal with the allow_guest_checkout
(This code is based on the railscast on express checkout episode)
response = EXPRESS_GATEWAY.setup_purchase(current_cart.build_order.price_in_cents,
:ip => request.remote_ip,
:return_url => new_order_url,
:cancel_return_url => products_url,
:allow_guest_checkout => true
)
希望这会有所帮助.
这篇关于Paypal Express Checkout和网站付款标准之间的API差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!