Answers.Body: <p>I got this to work with the following meta-data file. omnipay_Migs_TwoParty.mgd.php. Since the field in the code is merchantAccessCode I changed the label for passwords to "Merchant access code'. Both the debugger and the error message show this. </p>
  
  <pre><code>return [
   [ 
     'name' =&gt; 'OmniPay - MIGS',
     'entity' =&gt; 'payment_processor_type',
     'params' =&gt; array(
       'version' =&gt; 3,
       'title' =&gt; 'OmniPay - MIGS',
       'name' =&gt; 'Migs_TwoParty',
       'description' =&gt; 'Omnipay MIGS',
       // DO NOT CHANGE: Labels are used as Omnipay gateway properties.
      'user_name_label' =&gt; 'Merchant Id',
      'password_label' =&gt; 'Merchant access code',
      'signature_label' =&gt; 'Secure Hash',
      'class_name' =&gt; 'Payment_OmnipayMultiProcessor',
      'url_site_default' =&gt; 'http://unused.com',
      'url_api_default' =&gt; 'http://unused.com',
      'url_recur_default' =&gt; 'http://unused.com',
      'url_site_test_default' =&gt; 'http://unused.com',
      'url_recur_test_default' =&gt; 'http://unused.com',
      'url_api_test_default' =&gt; 'http://unused.com',
      'billing_mode' =&gt; 1,
      'payment_type' =&gt; 1,
      'is_recur' =&gt; 1,
     ),
   ]
  ];
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-03T01:46:31.153Z
Answers.LastActivityDate: 2019-09-03T01:46:31.153Z
Answers.UserDisplayName: Interlated
Body: <p>I'm trying to combine MIGS and <a href="https://civicrm.org/extensions/omnipay-multiprocessor-extension" rel="nofollow noreferrer">omnipay</a>. </p>
  
  <p>Steps
  1. Download omnipay 2.5 <a href="https://civicrm.org/extensions/omnipay-multiprocessor-extension" rel="nofollow noreferrer">https://civicrm.org/extensions/omnipay-multiprocessor-extension</a></p>
  
  <pre><code>sudo -u apache wget https://github.com/eileenmcnaughton/nz.co.fuzion.omnipaymultiprocessor/archive/2.5.zip
  sudo -u apache curl -s http://getcomposer.org/installer | sudo -u apache php
  sudo mkdir /usr/share/httpd/.composer
  sudo chown apache /usr/share/httpd/.composer
  </code></pre>
  
  <ol start="2">
  <li><p>Unzip into files/civicrm/ext</p></li>
  <li><p>Require MIGS: sudo -u apache ./composer.phar -v require omnipay/migs</p></li>
  </ol>
  
  <p>I had to do a bit of hacking about. php7.0 and some dependency troubles. </p>
  
  <ul>
  <li><p>Edit vendor/omnipay/tests/composer.json - make dev </p>
  
  <pre><code>sudo -u apache mkdir /srv/web/docdownload.com.au/web/files/civicrm/ext/nz.co.fuzion.omnipaymultiprocessor-2.5/vendor/sebastian/global-state/src
  sudo -u apache mkdir /srv/web/docdownload.com.au/web/files/civicrm/ext/nz.co.fuzion.omnipaymultiprocessor-2.5/vendor/sebastian/comparator/src
  sudo -u apache mkdir /srv/web/docdownload.com.au/web/files/civicrm/ext/nz.co.fuzion.omnipaymultiprocessor-2.5/vendor/sebastian/diff/src/ 
  </code></pre></li>
  </ul>
  
  <p>Result</p>
  
  <pre><code>Using version ^2.2 for omnipay/migs                 
  ./composer.json has been updated
  </code></pre>
  
  <p>The omnipay extension is registered.</p>
  
  <ol start="4">
  <li>Registering MIGS with omnipay. I want an on-site, pass by xml processor. </li>
  </ol>
  
  <p>I created a file Metadata/omnipay_Migs_TwoParty.mgd.php, cleared caches.  I tried registering the payments processor and cannot see it in the list. Administration > System Settings > payment processors - civicrm/admin/paymentProcessor.</p>
  
  <p>What goes into the metadata file omnipay_Migs_TwoParty.mgd.php? Has anybody created one before? Is there a document reference? Reverse engineer? Debug until it works? I created the minimum.</p>
  
  <pre><code> return array(
     array(
      'name' =&gt; 'OmniPay - Migs_TwoParty',
      'entity' =&gt; 'payment_processor_type',
      'metadata' =&gt; array(
    ),
    'params' =&gt; array(
      'version' =&gt; 3,
      'title' =&gt; 'OmniPay - Migs_TwoParty',
      'name' =&gt; 'omnipay_Migs_TwoParty',
      'description' =&gt; 'Omnipay Migs_TwoParty Onsite processing',
      // DO NOT CHANGE: Labels are used as Omnipay gateway properties.
      'user_name_label' =&gt; 'Api Key',
      'password_label' =&gt; 'Password',
      // When ready we need to add signature_label &amp; figure out how to pass through to tpl.
      //'signature_label' =&gt; 'Public Key (if wishing to use Client Encryption - recommended)',
      'class_name' =&gt; 'Payment_OmnipayMultiProcessor',
      'url_site_default' =&gt; 'http://unused.com',
      'url_api_default' =&gt; 'http://unused.com',
      'url_recur_default' =&gt; 'http://unused.com',
      'url_site_test_default' =&gt; 'http://unused.com',
      'url_recur_test_default' =&gt; 'http://unused.com',
      'url_api_test_default' =&gt; 'http://unused.com',
      'billing_mode' =&gt; 1,
      'payment_type' =&gt; 1,
      'is_recur' =&gt; 1,
      ),
    ),
  );
  </code></pre>
  
Tags: <omnipay>
Title: How to configure the MIGS Omnipay gateway?
ThreadText: # How to configure the MIGS Omnipay gateway?
  
  (Asked by: username_0 on 2019-03-06)
  
  I'm trying to combine MIGS and [omnipay](https://civicrm.org/extensions/omnipay-multiprocessor-extension).
  
  Steps
  1. Download omnipay 2.5 <https://civicrm.org/extensions/omnipay-multiprocessor-extension>
  
  ```
  sudo -u apache wget https://github.com/eileenmcnaughton/nz.co.fuzion.omnipaymultiprocessor/archive/2.5.zip
  sudo -u apache curl -s http://getcomposer.org/installer | sudo -u apache php
  sudo mkdir /usr/share/httpd/.composer
  sudo chown apache /usr/share/httpd/.composer
  
  ```
  
  2. Unzip into files/civicrm/ext
  3. Require MIGS: sudo -u apache ./composer.phar -v require omnipay/migs
  
  I had to do a bit of hacking about. php7.0 and some dependency troubles.
  
  * Edit vendor/omnipay/tests/composer.json - make dev
  
    ```
    sudo -u apache mkdir /srv/web/docdownload.com.au/web/files/civicrm/ext/nz.co.fuzion.omnipaymultiprocessor-2.5/vendor/sebastian/global-state/src
    sudo -u apache mkdir /srv/web/docdownload.com.au/web/files/civicrm/ext/nz.co.fuzion.omnipaymultiprocessor-2.5/vendor/sebastian/comparator/src
    sudo -u apache mkdir /srv/web/docdownload.com.au/web/files/civicrm/ext/nz.co.fuzion.omnipaymultiprocessor-2.5/vendor/sebastian/diff/src/ 
  
    ```
  
  Result
  
  ```
  Using version ^2.2 for omnipay/migs                 
  ./composer.json has been updated
  
  ```
  
  The omnipay extension is registered.
  
  4. Registering MIGS with omnipay. I want an on-site, pass by xml processor.
  
  I created a file Metadata/omnipay\_Migs\_TwoParty.mgd.php, cleared caches. I tried registering the payments processor and cannot see it in the list. Administration > System Settings > payment processors - civicrm/admin/paymentProcessor.
  
  What goes into the metadata file omnipay\_Migs\_TwoParty.mgd.php? Has anybody created one before? Is there a document reference? Reverse engineer? Debug until it works? I created the minimum.
  
  ```
   return array(
     array(
      'name' => 'OmniPay - Migs_TwoParty',
      'entity' => 'payment_processor_type',
      'metadata' => array(
    ),
    'params' => array(
      'version' => 3,
      'title' => 'OmniPay - Migs_TwoParty',
      'name' => 'omnipay_Migs_TwoParty',
      'description' => 'Omnipay Migs_TwoParty Onsite processing',
      // DO NOT CHANGE: Labels are used as Omnipay gateway properties.
      'user_name_label' => 'Api Key',
      'password_label' => 'Password',
      // When ready we need to add signature_label & figure out how to pass through to tpl.
      //'signature_label' => 'Public Key (if wishing to use Client Encryption - recommended)',
      'class_name' => 'Payment_OmnipayMultiProcessor',
      'url_site_default' => 'http://unused.com',
      'url_api_default' => 'http://unused.com',
      'url_recur_default' => 'http://unused.com',
      'url_site_test_default' => 'http://unused.com',
      'url_recur_test_default' => 'http://unused.com',
      'url_api_test_default' => 'http://unused.com',
      'billing_mode' => 1,
      'payment_type' => 1,
      'is_recur' => 1,
      ),
    ),
  );
  
  ```
  
  **Tags:** omnipay
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-09-03. Score: 1 | Accepted answer
  
  I got this to work with the following meta-data file. omnipay\_Migs\_TwoParty.mgd.php. Since the field in the code is merchantAccessCode I changed the label for passwords to "Merchant access code'. Both the debugger and the error message show this.
  
  ```
  return [
   [ 
     'name' => 'OmniPay - MIGS',
     'entity' => 'payment_processor_type',
     'params' => array(
       'version' => 3,
       'title' => 'OmniPay - MIGS',
       'name' => 'Migs_TwoParty',
       'description' => 'Omnipay MIGS',
       // DO NOT CHANGE: Labels are used as Omnipay gateway properties.
      'user_name_label' => 'Merchant Id',
      'password_label' => 'Merchant access code',
      'signature_label' => 'Secure Hash',
      'class_name' => 'Payment_OmnipayMultiProcessor',
      'url_site_default' => 'http://unused.com',
      'url_api_default' => 'http://unused.com',
      'url_recur_default' => 'http://unused.com',
      'url_site_test_default' => 'http://unused.com',
      'url_recur_test_default' => 'http://unused.com',
      'url_api_test_default' => 'http://unused.com',
      'billing_mode' => 1,
      'payment_type' => 1,
      'is_recur' => 1,
     ),
   ]
  ];
  
  ```
  
  
  ---
  
  