2012-09-18 156 views
2

當我嘗試執行下面我得到一個無效的令牌錯誤:無效的令牌錯誤

curl -s --insecure -H "X-PAYPAL-SECURITY-USERID:<paypal sandbox user id>" -H "X-PAYPAL-SECURITY-PASSWORD:<paypal sandbox password>" -H "X-PAYPAL-SECURITY-SIGNATURE:<paypal sandbox security signature>" -H "X-PAYPAL-REQUEST-DATA-FORMAT:NV" -H "X-PAYPAL-RESPONSE-DATA-FORMAT:JSON" -H "X-PAYPAL-APPLICATION-ID:APP-80W284485P519543T" https://svcs.sandbox.paypal.com/Invoice/CreateAndSendInvoice -d "requestEnvelope.errorLanguage=en_US&[email protected]&[email protected]&invoice.currencyCode=USD&invoice.itemList.item(0).name=Banana+Leaf+--+001&invoice.itemList.item(0).description=Banana+Leaf&invoice.itemList.item(0).quantity=1&invoice.itemList.item(0).unitPrice=1&invoice.itemList.item(0).taxName=Tax1&invoice.itemList.item(0).taxRate=10.25&invoice.paymentTerms=Net10" 

我收到以下錯誤:

{「responseEnvelope」 :{ 「時間戳」: 「2012-09-18T08:06:27.801-07:00」, 「ACK」: 「失敗」, 「的correlationID」: 「2d3c5f95a76d9」, 「建」: 「3566933」}, 「錯誤」 :[{「errorId」:「570054」,「domain」:「PLATFORM」,「subdomain」:「Application」,「severity」:「Error」,「category」:「Application」,「message」:「 「}]}

我沒有le找到發送錯誤的參數,這裏發送的參數用於獲取無效的令牌錯誤。請幫忙。

回答

3

確保您的商家電子郵件(invoice.merchantEmail)與沙箱帳戶中的商家電子郵件地址相同。