[FIX] payment_ogone: typos in comments

closes #4166
This commit is contained in:
hiekmann 2014-12-11 09:17:57 +00:00 committed by Xavier Morel
parent 058eaf01df
commit ed21177044
1 changed files with 2 additions and 2 deletions

View File

@ -224,10 +224,10 @@ class PaymentTxOgone(osv.Model):
def _ogone_form_get_invalid_parameters(self, cr, uid, tx, data, context=None):
invalid_parameters = []
# TODO: txn_id: shoudl be false at draft, set afterwards, and verified with txn details
# TODO: txn_id: should be false at draft, set afterwards, and verified with txn details
if tx.acquirer_reference and data.get('PAYID') != tx.acquirer_reference:
invalid_parameters.append(('PAYID', data.get('PAYID'), tx.acquirer_reference))
# check what is buyed
# check what is bought
if float_compare(float(data.get('amount', '0.0')), tx.amount, 2) != 0:
invalid_parameters.append(('amount', data.get('amount'), '%.2f' % tx.amount))
if data.get('currency') != tx.currency_id.name: