When accommodating event types for a PayPal webhook listener in my backend for a subscription plan I created, is it possible to receive the plan_id
and custom_id
parameters in PAYMENT.SALE.COMPLETED events? Or are they only going to be accessible from BILLING.SUBSCRIPTION.* events?
I need a dependable method of updating my database whenever a given user is automatically billed in the cycle. From what I have read, it sounds like the only option is the PAYMENT.SALE.COMPLETED event- but, I haven't been able to test this event with my current subscription (it has a trial period) and I have only been able to verify that BILLING.SUBSCRIPTION.* events pass along the plan_id
and custom_id
from my react button in my frontend.
If not, then how can we possibly correlate subscription events effectively with the user that completed a payment, without the ability to pass along these two parameters?
custom_id is returned. I don't know about plan_id but the sandbox environment exists to answer your question
PAYMENT.SALE.COMPLETED is the only important event to listen for. BILLING.SUBSCRIPTION events are in general not useful for any concrete purpose.