Hi there, thank you for reaching out to the Paid Memberships Pro team.
Please navigate to Memberships > Settings > Payment Gateway and click on the Recreate Webhook to recreate the webhook and connection between your site and Stripe.
Please give this a try and let me know if it helps.
Kind Regards,
Jarryd
Support Manager at Paid Memberships Pro
Thread Starter
leiovo
(@leiovo)
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
Thread Starter
leiovo
(@leiovo)
Hi, This has been resolved.
I am using “$membership_id = $morder->membership_id;” to retireve membership_id in recurring payment.
Thanks for your help. 🙂
I’m so glad to hear this is now working as expected. Feel free to reach out if there’s anything else our team can assist you with by starting a new topic.
If you’re enjoying Paid Memberships Pro, would you mind rating it 5-stars to help spread the word? https://ww.wp.xz.cn/support/plugin/paid-memberships-pro/reviews/
Kind Regards,
Jarryd
Support Manager at Paid Memberships Pro