Hi Jarryd,
Thanks for your reply, I have tried to recreate the webhook and did some tests, I successfully listened to the event.
However, when I want to retrieve the membership_id by using “$membership_id = $morder->membership_level->id;” from the $morder object, it works in “pmpro_after_checkout“, but it returns empty in “pmpro_subscription_payment_completed“.
I checked the documentation for $morder, can I use “$membership_id = $morder->membership_id;” directly to get the membership_id from $morder?
Much appreciate for your help!
Regards