Open misfist opened 1 month ago
@andrewlimaza I started working on updates to renewal events in this branch https://github.com/misfist/pmpro-ccbill/tree/45-successful-renewals-webhook-events-are-not-processed .
I'm not particularly familiar with the PMPro codebase, so took some direction from the Stripe and Braintree. Still WIP, but wanted to share. :)
Describe the bug Successful renewals webhook events are not saved as a member order.
To Reproduce Steps to reproduce the behavior:
RenewalSuccess
eventIn
./pmpro-ccbill/webhook.php
,RenewalSuccess
event case is runCode looks for
X-pmpro_orderid
in response, which doesn't existnew MemberOrder( $order_id )
fails because$order_id
is undefinedExpected behavior RenewalSuccess event should create a new order for the user's membership.
Isolating the problem (mark completed items with an [x]):
WordPress Environment