Skip to content
Snippets Groups Projects
Commit ed211770 authored by hiekmann's avatar hiekmann Committed by Xavier Morel
Browse files

[FIX] payment_ogone: typos in comments

closes #4166
parent 058eaf01
No related branches found
No related tags found
No related merge requests found
...@@ -224,10 +224,10 @@ class PaymentTxOgone(osv.Model): ...@@ -224,10 +224,10 @@ class PaymentTxOgone(osv.Model):
def _ogone_form_get_invalid_parameters(self, cr, uid, tx, data, context=None): def _ogone_form_get_invalid_parameters(self, cr, uid, tx, data, context=None):
invalid_parameters = [] 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: if tx.acquirer_reference and data.get('PAYID') != tx.acquirer_reference:
invalid_parameters.append(('PAYID', 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: if float_compare(float(data.get('amount', '0.0')), tx.amount, 2) != 0:
invalid_parameters.append(('amount', data.get('amount'), '%.2f' % tx.amount)) invalid_parameters.append(('amount', data.get('amount'), '%.2f' % tx.amount))
if data.get('currency') != tx.currency_id.name: if data.get('currency') != tx.currency_id.name:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment