VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: flaterik on January 07, 2012, 14:17:06 PM

Title: Problem with payment plugin
Post by: flaterik on January 07, 2012, 14:17:06 PM
Hi , i have a problem
I must take this field
'payment_info' => array('', 'string') that store my information about payment method.

But i see that this field are note builded on DB Table and also, the virtuemart_payment_plg_standard table are empty

I see a problem there:
At the end of this instruction, the 'payment_info'  field is not created in the table. Also the table are empty.

I give this problem because i want store in email the payment_info information

Thank for the help

  * Fields to create the payment table
     * @return string SQL Fileds
     */
    function getTableSQLFields() {
$SQLfields = array(
    'id' => 'tinyint(1) unsigned NOT NULL AUTO_INCREMENT',
    'virtuemart_order_id' => 'int(11) UNSIGNED DEFAULT NULL',
    'order_number' => 'char(32) DEFAULT NULL',
    'virtuemart_paymentmethod_id' => 'mediumint(1) UNSIGNED DEFAULT NULL',
    'payment_name' => 'char(255) NOT NULL DEFAULT \'\' ',
    'payment_order_total' => 'decimal(15,5) NOT NULL DEFAULT \'0.00000\' ',
    'payment_currency' => 'char(3) ',
    'cost_per_transaction' => ' decimal(10,2) DEFAULT NULL ',
    'cost_percent_total' => ' decimal(10,2) DEFAULT NULL ',
    'tax_id' => 'smallint(11) DEFAULT NULL'
);
Title: Re: Problem with payment plugin
Post by: alatak on January 07, 2012, 17:56:25 PM
Hi,

Yes that is probably  the problem... i will have a look.