Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20461

post hook not invoked after updating status for additional participants

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 4.7.20
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Steps to reproduce:

      1) Configure an event to register multiple participant. Set payment processor to any that does checkout to their site(I've configured OmniPay payment express)

      2) Write a post hook into extension/module and debug the $object id.

      3) Navigate to event register page and select 2 participant.

      4) When a user is navigated to the payment page. Both participant status is set as pending as Contribution is in pending mode(correct).

      5)When the payment is done and user is redirected to thankyou page, contribution completetransaction api is called to complete the payment which updates the participant status.

      Note that the debug you've written in 2nd point gets called only for primary participant. Hence, any post modification to the additional participant is not possible after it is registered.

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              jitendra.purohit Jitendra Purohit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: