您好,我正在使用这篇文章
了解 PayFlow 交易流程以及如何开发它。
在对示例进行了一些成功的测试之后,我对应该如何为发布版本开发它产生了一些疑问。
1.- 我打算像发布版本的示例一样使用 SDK 方法和 NVP 调用。但是,我不知道我是否应该使用更像是安全证书或服务调用的东西(我尝试从 .Net Wizard 调用 wsdl 服务,但我找不到任何与 PayFlow Transactions 相关的服务)。
2.- 另外,在 PDF 中:
https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_PayflowPro_Guide.pdf
有一些示例,例如第 29 页中的示例,说明:
//Typical Sale Transaction Parameter String
//The following is a typical PARMLIST string passed in a Sale transaction.
"TRXTYPE=S&TENDER=C&USER=SuperUser&PWD=SuperUserPassword&VENDOR=SuperUser&PA
RTNER=PayPal&ACCT=5105105105105100&EXPDATE=1209&CVV2=123&AMT=99.00&FIRSTNAM
E=John&LASTNAME=Smith&STREET=123 Main St.&CITY=San
Jose&STATE=CA&ZIP=12345&COMMENT1=Reservation&INVNUM=1234567890&PONUM=C12345
&CVV2=567&VERBOSITY=MEDIUM"
//Note that, besides the required parameters that you pass in a Sale transaction, this string
//includes other typical parameters. The COMMENT1 (and COMMENT2) fields help to track
//transaction information. The customer’s street address (STREET) and zip should be passed to
//use address verification service. CVV2 is needed for card security code validation.
在那个例子中我不明白的是为什么两次使用 CCV2 参数。另外,我不知道 INVNUM 和 PONUM 参数是什么意思。此外,我知道如果不传递CCV2(安全码)参数和地址参数,测试将成功,但这些不是强制性的吗?这让我有点困惑,因为对于 DirectPayment 服务,它们是。
3.- 在 PDF 中,第 99 页有一个名为“提交采购卡级别 2 和级别 3 交易”的部分。在第 100 页中,它说:
//Level 2 and Level 3 data is generally considered non-financial data. Lack of adequate data
//may cause a transaction to be downgraded.PayPal generally requires up to Level 2 information in
//an Authorization transaction followed by additional Level 3 data in the associated
//Delayed Capture transaction. A Sale transaction should include all Level 3 data
//since it is authorized and later settled.
这是否意味着我“需要”使用比销售交易所需参数更多的参数?否则,交易可能会被降级?
最佳答案
1) Paypal 提供PayFlow documentation这涵盖了所有这些。您基本上需要连同您的 API 请求一起发送在 manager.paypal.com 上使用的相同登录凭据。
2) 我认为他们两次包含 CVV2 参数只是一个错误。您只想包含一次。我之前链接到的文档将涵盖所有请求参数的含义,但 INVNUM 是您可以用来在 PayFlow/Paypal 系统中跟踪自己的发票的内容。 PONUM 类似,但将是 PO 编号而不是发票编号。如果您以后需要在 PayPal 系统中找到它们,您可以搜索这些值。
对于 PayFlow 和 Direct Payment,CVV2 和匹配的账单地址的要求取决于您帐户的欺诈过滤器设置。如果您已将其设置为需要它们,那么没有它就会出错。如果它被设置为接受失败/不匹配,那么它会相应地这样做。
3) 不,你不需要担心这个。
关于asp.net-mvc-3 - 带有 MVC3 ASP.NET 的 PayPal PayFlow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11872298/