【问题标题】:PayPal PayFlow with MVC3 ASP.NET带有 MVC3 ASP.NET 的 PayPal PayFlow
【发布时间】:2012-08-08 20:04:02
【问题描述】:

您好,我正在使用这篇文章

http://www.codeproject.com/Articles/152280/Online-Credit-Card-Transaction-in-ASP-NET-Using-Pa?msg=3753796#xx3753796xx

了解 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.

这是否意味着我“需要”使用比销售交易所需参数更多的参数;否则交易可能会被降级?

【问题讨论】:

    标签: asp.net-mvc-3 payment-gateway paypal payflowpro


    【解决方案1】:

    1) PayPal 提供的PayFlow documentation 涵盖了所有这些。您基本上需要将在 manager.paypal.com 上使用的登录凭据与您的 API 请求一起发送。

    2) 我认为他们两次包含 CVV2 参数只是一个错误。您只想包含一次。我之前链接的文档将涵盖所有请求参数的含义,但您可以使用 INVNUM 在 PayFlow/Paypal 系统中跟踪您自己的发票。 PONUM 类似,但将是 PO 编号而不是发票编号。如果您以后需要在 PayPal 系统中查找这些值,您可以搜索它们。

    对于 PayFlow 和 Direct Payment,CVV2 和匹配帐单邮寄地址的要求取决于您帐户的欺诈过滤器设置。如果您已将其设置为需要它们,那么没有它您会收到错误消息。如果它设置为接受失败/不匹配,那么它会相应地这样做。

    3) 不,您不必担心这个。

    【讨论】:

    • 我现在明白我并没有遗漏任何重要内容。感谢您的帮助。
    猜你喜欢
    • 1970-01-01
    • 2012-08-16
    • 2015-04-29
    • 2011-01-25
    • 2017-05-06
    • 2014-09-12
    • 2012-12-03
    • 2011-05-28
    • 2013-03-14
    相关资源
    最近更新 更多