IPN Messages has payment_status=completed & pending_reason=authorization at the same time.

intellibird
Contributor
Contributor

Hello,

Whenever a new payment is completed I would like to send my user some information.

The process is as follows:

1. User receive a link to authorize a payment.

2. When authorized, redirected to my approve_url.

3. My backend executes the payment and capture the funds.

4. Third party server will be notified about the completed payment via IPN message.

 

The problem is, whenever a user authorize a payment, the third party server receive an IPN message with payment_status=completed&pending_reason=authorization. This is in complete contrast to what Paypal's documentation says.

That pending_reason will be null unless payment_status=pending.

 

This situation make the third party server process the same "completed" payment twice and causes problems with duplicate entries.

 

I can not modify the third party processing of the IPN message, They execute whenever the payment_status=completed, regardless of pending_reason has value or not.

 

Is this a bug? Any solution?

Thanks

Yarin

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.