PayPal IPN for solved disputes with a different refund amount offered by the seller - paypal

I am integrating PayPal with my site and testing in sandbox.
When the buyer opens a dispute in PayPal Resolution Center to requests a refund, then we receive an IPN with payment_status = Reversed (the refund amount requested by the buyer is removed from the seller's account balance).
Then if the seller agrees to send the full refund, closing the case, then we receive an IPN with payment_status = Canceled_Reversal (the refund amount requested by the buyer is returned to the seller's account balance) and another IPN with payment_status = Refunded (the refund amount requested by the buyer is removed from the seller's account balance and finally returned to the buyer's account balance).
This is the IPNs' payment_status sequence for such case: Reversed > Canceled_Reversal > Refunded
However, the issue occurs when the seller offers a different refund amount to the buyer, who agrees with it, getting the offered amount back and closing the case.
This is the IPNs' payment_status sequence for such case: Reversed > Refunded
It seems to me that the IPN with payment_status = Canceled_Reversal is missing. I need it for financial purposes.
What is wrong? Am I misunderstanding anything?

Related

Paypal IPN's payment status

I set up a recurring payment within my website. Of course Paypal is the payment method.
So, when a customer have an empty paypal account, the automatic payment will not be performed.
In this case what's the value of payment_status field ?
And how can I identify the failure of payment ?
The docs for IPN are here.
Per the docs:
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: The payment was denied. This happens only if the payment was
previously pending because of one of the reasons listed 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.

How long woulld a merchant receive the funds after the capture moves funds from your buyer's account to your PayPal account?

Paypal documentation says:
You can capture funds, which is a request to process the payment your buyer authorized. If successful, the capture moves funds from your buyer's account to your PayPal account.
You can also reauthorize, which offers you a new honor period for your authorization.
Finally, you can void the authorization, which removes your ability to capture funds on the authorization, and returns PayPal balance funds to the buyer if applicable.
Note: If the capture is performed outside the honor period, there is a possibility the funds will not be available at that time.
How long woulld a merchant receive the funds after the capture moves funds from your buyer's account to your PayPal account?
PayPal capture (and sale transactions) instantly transfer money between the PayPal accounts involved. [Except for a few edge cases which can result in pending transactions, such as payments held for merchants who have not yet signed up, or who need to tell PayPal whether to release the funds in the payment currency or convert the payment to the merchant's default currency, etc.]
Note that this means the money instantly moves to the merchant's PayPal account; there will then be some delay involved in withdrawing these funds to an external bank account, if the merchant chooses to do that.
Do you mean a delayed capture transaction through a payment gateway? I didn't think paypal itself did delayed capture so I assume you mean through payflow pro? Or Paypal Advanced (which I understand is basically just a merchant account).
The funds will transfer basically instantly but there can be a delay for the funds to make their way from your acquirer / merchant bank to your bank account (settlement time / settlement period). If that's what you mean it should be about 1-3 days for the funds to be deposited into your bank account (each acquirer / merchant bank will have a different time-frame that you can find out by asking them or through their website).

Incomplete Delayed Chained Payment Fees Payer

I'm setting up a delayed chained payment in PHP
I'm setting the feesPayer to SECONDARYONLY
$payRequest->feesPayer = 'SECONDARYONLY';
the transaction is made to the primary receiver
but the second leg of the chained payment (from primary to secondary receiver) is still pending.
then 90 days passed (payKey expired) and I did not complete the payment.
who pays the fees when the payKey expires?
Based on my messages with PayPal's support, I tell you that no one will pay the fees because the payment will be reverted back to the buyer !
So if you didn't complete the payment, it will go back and you will not be able to change the receivers during 90 days.

txn_id on paypal IPN is different than transaction number buyer gets on screen

How is it possible?
txn_id value seller gets (by paypal ipn) is different than transaction number buyer gets on screen when he makes an order.
Are there two different id's for each transaction (client and shop)? or truely txn_id i am receiving is wrong?
Thanks a lot guys!
If the buyer is paying with PayPal directly (i.e. Express Checkout) then the buyer will get one transaction ID and you will get another. It's confusing but it's how PayPal chose to do it.

What happens when credit card expires on recurring paypal payment?

On recurring paypal payment, what happens when CC expires?
Will it send IPN notification?
Will it send email to seller and buyer?
Will it be stopped till CC is not updated and continues when it get updated?
what exactly will happen, many thing is dependent on payment on sites.
When a credit card is going to expire the buyer needs to update their billing information. They buyer will get an e-mail from PayPal saying it is going to expire and asks the user to update their billing information.
If the buyer does not update their billing details the payment will probably fail. The reason it may not fail is because they may have money in their PayPal account or another funding source. And IPN post would be sent for the failed payment.
If the buyer does update their credit or debit card information before the Recurring Profile bills you should receive the payment successfully.