News:

Looking for documentation? Take a look on our wiki

Main Menu

Problem with payment plugin

Started by flaterik, January 07, 2012, 14:17:06 PM

Previous topic - Next topic

flaterik

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'
);

alatak

Hi,

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