2010-03-12 67 views
28

我正在網站上銷售PDF的在線,用戶可以通過PayPal付款後通過電子郵件獲取下載鏈接。可能的付款狀態值

上述情況可能是什麼可能的貝寶支付狀態值? 我只能想到Complete & InComplete。在這裏使用Processing是否有意義?

回答

68

開發之前,您應該先熟悉PayPal IPN和PDT概念。閱讀IPN and PDT Variables的文檔。下面是從文檔頁面中的付款狀態的可能性:

payment_status

付款的狀態:

Canceled_Reversal: A reversal has been canceled. For example, you won a dispute with the customer, and the funds for the transaction that was reversed have been returned to you. 
Completed: The payment has been completed, and the funds have been added successfully to your account balance. 
Created: A German ELV payment is made using Express Checkout. 
Denied: You denied the payment. This happens only if the payment was previously pending because of possible reasons described for the pending_reason variable or the Fraud_Management_Filters_x variable. 
Expired: This authorization has expired and cannot be captured. 
Failed: The payment has failed. This happens only if the payment was made from your customer’s bank account. 
Pending: The payment is pending. See pending_reason for more information. 
Refunded: You refunded the payment. 
Reversed: A payment was reversed due to a chargeback or other type of reversal. The funds have been removed from your account balance and returned to the buyer. The reason for the reversal is specified in the ReasonCode element. 
Processed: A payment has been accepted. 
Voided: This authorization has been voided. 

最常見的狀態,我通常得到的是CompletedPendingPending的常見原因是買方和賣方之間使用不同的貨幣,例如:您以美元出售,買方以英鎊支付,PayPal將交易標記爲待處理,並在幾天後清除。我的一位客戶希望我處理PendingCompleted相同,因爲他只是銷售數字商品(PDF文件),並且如果付款被延遲,則不具有風險,這與商家的實物商品不同。

您可以在this page中獲得完整的PayPal文檔。

應該注意的是,payment_status變量只用於st。貝寶顯然已將st變量更改爲payment_status

+0

是'創造'最後'payment_status'? – Mystic 2013-12-27 20:49:11

+1

我的意思是:我會在'created'後收到'completed'嗎?因爲'created'只能被德國客戶使用,所以我不知道會發生什麼。 – Mystic 2013-12-27 20:56:34

+0

我的建議,創建一個登臺網站,爲買家和賣家使用sandbox paypal賬戶。嘗試做交易並觀看日誌,您從Paypal獲得的狀態。 – 2014-01-11 02:38:18