Modify

Opened 5 years ago

Closed 5 years ago

#1928 closed Bug/Fehler (fixed)

error im Klarna-Modul, Kodierung

Reported by: info@… Owned by: Gerhard Waldemair
Priority: hoch Milestone: modified-shop-2.0.6.0
Component: Module Version: trunk
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Torsten Riemer)

Hi,

Shopversion: v2.0.4.2 rev 11374
Spracheinstellung im Shop iso-8859-15

Klarna-Fehler: BAD_VALUE: Request body is empty

Ursache: Umlaute im Namen der Artikel

Mögliche Korrektur:
includes\external\klarna\classes\KlarnaPayment.php Zeile 349ff

$products_array[$i] = array(
        'type' => (($type == 'virtual') ? 'digital' : 'physical'),
        'reference' => $products['id'],
        'name' => encode_utf8($products['name'], $_SESSION['language_charset'], true),
        'quantity' => $products['qty'],
        'unit_price' => $this->format_amount($amount),
        'tax_rate' => $this->format_amount($products['tax']),
        'total_amount' => $this->format_amount($amount * $products['qty']),
        'total_tax_amount' => $this->format_amount($xtPrice->xtcGetTax(($amount * $products['qty']), $products['tax'])),
      );

Attachments (0)

Change History (2)

comment:1 by Torsten Riemer, 5 years ago

Description: modified (diff)
Milestone: modified-shop-2.0.6.0
Version: 2.0.4.2trunk

Vorsichtshalber vielleicht auch gleich auf "reference" anwenden, da auch die Artikelnummer ggf. Umlaute enthalten kann, also:

      $products_array[$i] = array(
        'type' => (($type == 'virtual') ? 'digital' : 'physical'),
        'reference' => encode_utf8((($products['model'] != '' && mb_strlen($products['model'], $_SESSION['language_charset']) <= 64) ? $products['model'] : (int)$products['id']), $_SESSIONlanguage_charset, true),
        'name' => encode_utf8(strip_tags($products['name']), $_SESSIONlanguage_charset, true),
        'quantity' => $products['qty'],
        'unit_price' => $this->format_amount($amount),
        'tax_rate' => $this->format_amount($products['tax']),
        'total_amount' => $this->format_amount($amount * $products['qty']),
        'total_tax_amount' => $this->format_amount($xtPrice->xtcGetTax(($amount * $products['qty']), $products['tax'])),
      );

comment:2 by Gerhard Waldemair, 5 years ago

Owner: set to Gerhard Waldemair
Resolution: fixed
Status: newclosed

In 13042:

fix #1928 - revised r13040 (fix #1927 - revised r13023 (fix #210, #1245 - replaced Klarna Payment Methods (KPM) with Klarna Payments (KP) modules))

Modify Ticket

Action
as closed The owner will remain Gerhard Waldemair.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.