|
|||
|
Moin zusammen,
Ich habe ein Problem! Mein Server unterstüzt die Paypal Express abwicklung nicht, die iconv-Funktion ist wohl deaktiviert. Habe den Provider diesbezüglich schon kontaktiert aber noch kein Feedback bekommen. Welche Möglichkeiten der Paypal Zahlung gibt es noch? Kann ich irgendwie das alte Paypal wieder installieren? Würde es dann damit funktionieren? Gruß Flo |
|
|||
|
Mojn,
vielleicht hilft dir dies, statt des iconv. Zumindest in die UTF8 Richtung die für die Übergabe an PayPal wichtig ist: Code:
<?php
function cp1251_utf8( $sInput )
{
$sOutput = "";
for ( $i = 0; $i < strlen( $sInput ); $i++ )
{
$iAscii = ord( $sInput[$i] );
if ( $iAscii >= 192 && $iAscii <= 255 )
$sOutput .= "&#".( 1040 + ( $iAscii - 192 ) ).";";
else if ( $iAscii == 168 )
$sOutput .= "&#".( 1025 ).";";
else if ( $iAscii == 184 )
$sOutput .= "&#".( 1105 ).";";
else
$sOutput .= $sInput[$i];
}
return $sOutput;
}
?>
|
|
|||
|
Mojn,
hängst die Funktion am Ende der /includes/classes/paypal_checkout.php z.B. mit dran. Ich galube? das iconv wird nur hier gebraucht? Dann änderst du Zeilen wie diese: Code:
$sh_city = urlencode(iconv($_SESSION['language_charset'], "UTF-8", $order->delivery['city'])); Code:
$sh_city = urlencode($this->cp1251_utf8($order->delivery['city'])); Du kannst natürlich es dir einfacher machen, wenn du die Funktion gleich Code:
function iconv($nix1, $nix2, $sInput ){
Viele Grüße - Michael |
|
|||
|
und bei
Code:
$string=iconv('UTF-8', $_SESSION['language_charset'], $string);
machste Code:
$string=$string; Viele Grüße - Michael |
![]() |
| Lesezeichen |
| Stichworte |
| alternative, expressabwicklung |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| PayPal Express Modul mit GiroPay - Stand 17.09.2011 | mikkel | PayPal Express-Kaufabwicklung für xt:Commerce | 269 | 05.01.2012 15:50 |
| Paypal Express fehler | Bikeprofi | PayPal Express-Kaufabwicklung für xt:Commerce | 25 | 19.01.2009 17:39 |
| Paypal Express aber kein Express Abwicklung | sro@roth-consult.de | PayPal Express-Kaufabwicklung für xt:Commerce | 8 | 07.11.2007 22:24 |