It's been a couple of years and that link is dead and I'm having the same issue. Is there a new link to this solution or can someone provide the solution here?
This mostly works, I still need the preview to be a string when I display it and when the value of $lead.previous_billing_period_previews is null, then I get an error message. So I...