Possible payment status values

前端 未结 2 1415
失恋的感觉
失恋的感觉 2021-01-30 01:34

I am working on a website to sell PDF\'s online, where user can get the download link by email after paying through paypal.

What could be the possible paypal payment sta

2条回答
  •  执笔经年
    2021-01-30 02:27

    Before developing, you should make yourself familiar with PayPal IPN and PDT concept. Read the documentation of IPN and PDT Variables. Here is the payment status possibilities from that document page:

    payment_status

    The status of the payment:

    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.
    

    The most common status that I usually get is Completed and Pending. Common cause of Pending is the usage of different currency between buyer and seller, e.g: You sell in USD, buyer pay with GBP, PayPal will mark the transaction as Pending and it will be cleared after a few day. One of my client want me to handle Pending same as Completed, since he just sell digital goods (PDF file) and possess no risk if the payment is delayed, unlike merchant with physical goods.

    You can get complete PayPal documentation in this page.

    It should be noted that the payment_status variable used to just be st. Paypal has apparently changed the st variable to payment_status.

提交回复
热议问题