33

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

对于上述情况,可能的贝宝付款状态值是多少?我只能想到Complete& InComplete。在这里使用Processing有意义吗?

4

2 回答 2

79

在开发之前,您应该熟悉 PayPal IPN 和 PDT 概念。阅读IPN 和 PDT 变量的文档。以下是该文档页面中的付款状态可能性:

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.

我通常得到的最常见的状态是Completedand Pending。常见的原因Pending是买卖双方使用不同的货币,例如:您以美元出售,买方以英镑付款,PayPal会将交易标记为待处理,几天后将被清除。我的一位客户希望我处理Pending与 相同的操作Completed,因为他只是销售数字商品(PDF 文件),并且如果付款延迟,则不承担任何风险,这与拥有实物商品的商家不同。

您可以在此页面中获得完整的 PayPal 文档。

需要注意的是,该payment_status变量过去只是st. Paypal 显然已将st变量更改为payment_status.

于 2010-03-13T04:15:58.650 回答
1

https://developer.paypal.com/docs/api/payments/v1/

state enum 支付、授权或订单交易的状态。值为:

创建的。事务已成功创建。

得到正式认可的。客户批准了交易。在生成用于销售交易的 sale_id、用于授权交易的 authorization_id 或用于订单交易的 order_id 时,状态从创建更改为已批准。

失败的。交易请求失败。

只读。

可能的值:创建、批准、失败。

在此处输入图像描述

于 2019-05-07T09:11:58.710 回答