可能的付款状态值

时间:2010-03-12 14:26:04

标签: paypal payment

我正在一个网站上销售PDF在线,用户可以通过PayPal付款后通过电子邮件获取下载链接。

上述情况可能是什么样的paypal支付状态值? 我只能想到Complete& InComplete。在这里使用Processing是否有意义?

2 个答案:

答案 0 :(得分:74)

在开发之前,您应该熟悉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。 Paypal显然已将st变量更改为payment_status

答案 1 :(得分:0)

来自documentation

  

状态枚举
  付款,授权或订单交易的状态。值是:

     
      
  • created。交易已成功创建。

  •   
  • approved。客户批准了交易。在生成created待售交易,approved进行授权交易或sale_id进行订单交易时,状态从authorization_id变为order_id

  •   
  • failed。交易请求失败。

  •   
     

只读。

     

可能的值:createdapprovedfailed