I am trying to use hook_form_alter()
to change the details of the CiviCRM Payment Processor for specific users (to change from live mode to test mode).
I can find most of the components in $form['submitted']
, which works for another use case, but I cannot find the payment processor details.
Are these somewhere else, or do I have to use a different mechanism?
I am currently looking at Drupal 7, but I will also need to do the same on Drupal 9.