I am using CiviCRM 5.13.4 and CiviRules 2.9.
I am using CiviRules to send an email to Contacts when they sign up for a Membership, but do so using 'Pay Later', to remind them how to pay etc. The sign-up is via a Webform, but I'm not sure that matters.
The rule is set up to fire on 'Contribution Added', tests for the 'Pending' status and sends the Email - which all works OK. The email uses a Template which contains (custom) tokens which fill in the Membership Type and Price into the text to be sent.
If I test this Template in a static environment, i.e. some time after the payment was made it works correctly, but when triggered by the Rule those Tokens just return empty. I strongly suspect that this is because when the rule fires the Contribution record has been added to the database, but the Line Items which connect it to the Membership information have not yet been created.
When does the 'Membership Payment Added' trigger fire, and would it solve my problem? Or is there another way?
Thank You.