Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal IPN for cancel billing agreement

I have an implementation for IPN requests from Paypal. It's working fine for everything but for cancel billing agreement notifications.

As per the documentation ( https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNandPDTVariables/) when:

txn_type = mp_cancel

I'm receiving a billing agreement cancelation, but I don't receive the billing agreement itself, and I need it to cancel it locally in my DB.

Is there any other way to obtain it?

Thanks

like image 706
Oriam Avatar asked Sep 12 '25 03:09

Oriam


1 Answers

After some tests, I realized Paypal sends a parameter:

mp_id

with the billing agreement, but that's not in the documentation :(

Hope this helps somebody

like image 54
Oriam Avatar answered Sep 15 '25 02:09

Oriam