2012-08-08 59 views
1

您好我用這篇文章貝寶PayFlow與MVC3 ASP.NET

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

瞭解PayFlow交易流程,以及如何就下發展。

從示例中做了一些成功的測試之後,我對如何爲發佈版本開發它提出了一些懷疑。

1.-我打算使用SDK方法和NVP調用,就像本示例中的發行版一樣。但是,我不知道是否應該使用更安全的證書或服務調用(我嘗試從.Net嚮導調用wsdl服務,但是我找不到任何與PayFlow事務有關的服務)。

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,有一個名爲「提交採購卡2級和3級事務」第99頁,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. 

這是否意味着我對於Sale交易,「需要」使用比所需參數更多的參數;否則,交易可能會降級?

回答

0

1)貝寶提供PayFlow documentation涵蓋所有這些。您基本上需要發送與您的API請求一起使用的與manager.paypal.com相同的登錄憑據。

2)我認爲這只是一個錯誤,他們有兩次包含CVV2參數。你只想包括一次。我之前鏈接的文檔將涵蓋所有請求參數的含義,但INVNUM可用於在PayFlow/Paypal系統中跟蹤自己的發票。 PONUM是相似的,但將是一個採購訂單編號而不是發票編號。如果您需要在PayPal系統中查找這些值,您可以在將來搜索這些值。

對於PayFlow和直接付款,CVV2和匹配帳單郵寄地址的要求取決於您帳戶的欺詐過濾器設置。如果你已經設置它來要求他們,那麼你會得到一個沒有它的錯誤。如果它設置爲接受失敗/錯誤匹配,那麼它會相應地這樣做。

3)不,你不需要擔心這一點。

+0

我現在明白我沒有離開任何關鍵的東西。謝謝您的幫助。 – 2012-11-14 17:40:22