Prestashop Core Application V1.4

DIBS module test paramter iss assigned with wrong values.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Fix Version/s: None
  • Component/s: None
  • Security Level: All-users
  • Labels:
  • Similar issues:
    PSCFI-2004 DIBS payment module - input values are not encoded with html entities() function.
    PSCFI-1782 Dibs Payment module order confirmation
    PSCFI-4142 Dibs module does not return order confirmation page
    PSCFI-1768 Dibs payment module and CCC
    PSCFI-3114 dibs payment
    PSCFI-2178 PaymentModule::getCurrency has wrong value
    PSCFI-673 Wrong link_rewrite field value in Russian
    PSCFI-4605 Carrier tax with shipping cost wrong rounded value
    PSCFI-3722 Layered navigation: feature customized values not available on version 1.4
    PSCFI-1465 Incorrect Value for Caching NumRows

Description

By default DIBS module sets "test" parameter to "yes" or "no" values. This is wrong if you are not using DIBS API and it causes this error: No paytype(s)! Missing test parameter? "test" parameter can be set to 1 if test environment is enabled by DIBS if not then you'll get errors. If you are not testing do not include "test" parameter in your form. The solution to this problem:

Find file: modules/dibs/dibs.php
Find line: $dibsParams['test'] = (self::$TESTING === 1) ? 'yes' : 'no';
Replace it:

if(self::$TESTING === 1)

{ $dibsParams['test'] = 1; }

It solved the problem.

DIBS module must explain to users that if hey want to test DIBS then they must contact DIBS and ask them to enable test environment. If test environment is not enabled then they will get an error.

Detailed analysis of the problem and solution can be found here:
http://www.prestashopdocumentation.info/dibs-module-no-paytypes-missing-test-parameter-error-fixed/

Activity

Hide
Maxence DE FLOTTE added a comment - 08/Jun/11 2:44 PM

Hi,

Thank you. I forgot to commit this issue.

Best regards,

Show
Maxence DE FLOTTE added a comment - 08/Jun/11 2:44 PM Hi, Thank you. I forgot to commit this issue. Best regards,

People

Vote (0)
Watch (0)

Dates

  • Created:
    08/Jun/11 12:03 PM
    Updated:
    27/Nov/11 8:29 AM
    Resolved:
    09/Jun/11 4:31 PM