2013-07-07 61 views
0

好吧,我已經使我的頭靠在牆上兩個小時,使我認爲是一個簡單的通過NVP的貝寶呼叫。我試過所有的東西,但它一直告訴我,它沒有解決,因爲內部錯誤並不能告訴我我做錯了什麼。PayPal NVP超時

O'偉大而明智的互聯網Jedi的,請指導這個任性的Padawan?感謝提前:)

(
    [TIMESTAMP] => 2013-07-07T09:37:28Z 
    [CORRELATIONID] => f2e28b7dcf9fb 
    [ACK] => Failure 
    [VERSION] => 53.0 
    [BUILD] => 6680107 
    [L_ERRORCODE0] => 10001 
    [L_SHORTMESSAGE0] => Internal Error 
    [L_LONGMESSAGE0] => Internal Error 
    [L_SEVERITYCODE0] => Error 
    [AMT] => 232.15 
    [CURRENCYCODE] => USD 
) 

這裏是NVP調用的內容:

METHOD=DoDirectPayment 
VERSION=53.0 
PWD=1371372778 
USER=xxx 
SIGNATURE=xxx 
PAYMENTACTION=Sale 
IPADDRESS=xxx 
AMT=232.15 
CREDITCARDTYPE=VISA 
ACCT=4111111111111111 
EXPDATE=072016 
FIRSTNAME=Harvey+Brooks 
LASTNAME=- 
STREET=3443+Padaro+Lane 
CITY=Malibu 
STATE=CA 
COUNTRYCODE=US 
CURRENCYCODE=USD 
SHIPPINGAMT=0.00 
CVV2=123 
EMAIL=xxxx 
PHONENUM=7022403735 
SHIPTONAME=Some Dude 
SHIPTOSTREET=90210+S+Bend 
SHIPTOSTREET2=STE+120 
SHIPTOCITY=Las+Vegas 
SHIPTOSTATE=NV 
SHIPTOCOUNTRYCODE=US 
SHIPTOPHONENUM=xxx 
L_NAME0=100+ANOS%C2%AE+ 
L_NUMBER0=19 
L_QTY0=1 
L_TAXAMT0=0 
L_AMT0=29.69 
L_NAME1=Chivas+Regal 
L_NUMBER1=69 
L_QTY1=2 
L_TAXAMT1=0 
L_AMT1=51.29 
L_NAME2=Wild+Turkey 
L_NUMBER2=34 
L_QTY2=1 
L_TAXAMT2=0 
L_AMT2=29.69 
L_NAME3=Patr%C3%B3n+Silver+ 
L_NUMBER3=23 
L_QTY3=1 
L_TAXAMT3=0 
L_AMT3=70.19 
ITEMAMT=232.15 
TAXAMT=0  
+1

也許愚蠢的想法,但如果更改API版本從53到86怎麼辦?也許舊的API支持版本已經停止。 –

+0

也是,你的金額總和是180.86,而不是232.15(如果不是第二項的乘數價格)。確切地說, –

回答

0
VISA 

4066901366000455 

CVV = 123 EXP日期=將來的某一天

$版=進行urlencode('51 0.0' );

嘗試這些設置

$ nvpStr = 「& PAYMENTACTION = $ paymentType & AMT = $金額& CREDITCARDTYPE = $ CREDITCARDTYPE & ACCT = $ creditCardNumber」。 「& EXPDATE = $ padDateMonth $ expDateYear & CVV2 = $ cvv2Number & FIRSTNAME = $ firstName & LASTNAME = $ lastName」。 「& STREET = $地址1 & CITY = $城市& STATE = $狀態& ZIP = $拉鍊& COUNTRYCODE = $國家& CURRENCYCODE = $ currencyID」;

+0

。 ACCT = 4111111111111111是你的問題。不幸的是,(着名的)測試卡目前在我們的沙盒環境中無法正常工作(儘管我很想讓它恢復正常工作..) – Robert

相關問題