No payment method configuration in Virtuemart



  • I'm developing a payment module for Virtuemart. Configuration file test_payment.xml is as follows:

    <?xml version="1.0" encoding="utf-8"?>
    <extension version="2.5" type="plugin" group="vmpayment" method="upgrade">
        <name>VM Payment - Test</name>
        <author>Test</author>
        <version>1.0.0</version>
        <description>Test payment</description>
        <files>
            <filename plugin="test_payment">test_payment.php</filename>
        </files>
        <config>
            <fields name="params">
                <fieldset name="basic">
                    <field name="merchant" type="text" size="20" label="Логин" description="" default="" />
                    <field name="password"  type="text" size="20" label="Пароль" description="" default="" />
                    <field name="test" type="list" default="1" label="Режим теста" description="">
                        <option value="1">Включен</option>
                        <option value="0">Выключен</option>
                    </field>
                    <field name="step" type="list" default="1" label="Стадийность" description="">
                        <option value="1">Одностадийный платеж</option>
                        <option value="2">Двухстадийный платеж</option>
                    </field>
                </fieldset>
            </fields>
        </config>
    </extension>
    

    When adding a new method of payment and maintaining the OBD configuration in the table virtuemart_paymentmethods field payment_params The following line shall be retained:

    merchant="test"|password="test"|test="0"|step="2"|
    

    But on the configuration page, the fields remain empty/default. Can you tell me why they're not on the page after they've been built?

    Joomla v3.5.1, Virtuemart v3.0.14



  • Turns out VirtueMart version 3 needs to redesign the method plgVmDeclarePluginParamsPaymentVM3 Class vmPSPlugin:

    function plgVmDeclarePluginParamsPaymentVM3(&$data) {
        return $this->declarePluginParams('payment', $data);
    }
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2