2013-02-12 60 views

回答

3

轉到插件/ vmpayment /貝寶/ paypal.php

,搜索這個功能plgVmConfirmedOrder()

您可以在最後的這個功能看到這種形式

$html = '<html><head><title>Redirection</title></head><body><div style="margin: auto; text-align: center;">'; 
$html .= '<form action="' . "https://" . $url . '" method="post" name="vm_paypal_form">'; 
$html.= '<input type="submit" value="' . JText::_('VMPAYMENT_PAYPAL_REDIRECT_MESSAGE') . '" />'; 
foreach ($post_variables as $name => $value) { 

    $html.= '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($value). '" />'; 

} 
$html.= '</form></div>'; 
$html.= ' <script type="text/javascript">'; 
$html.= ' document.vm_paypal_form.submit();'; 
$html.= ' </script></body></html>'; 

更換與此形成。

$html = '<html><head><title>Redirection</title></head><body><div style="margin: auto; text-align: center;">'; 
$html .= '<form action="' . "https://" . $url . '" method="post" name="vm_paypal_form">'; 
$html.= '<input type="submit" value="' . JText::_('VMPAYMENT_PAYPAL_REDIRECT_MESSAGE') . '" />'; 
foreach ($post_variables as $name => $value) { 

    $html.= '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($value). '" />'; 

} 
$html.= '<input type="hidden" name="charset" value="utf-8">'; 
$html.= '</form></div>'; 
$html.= ' <script type="text/javascript">'; 
$html.= ' document.vm_paypal_form.submit();'; 
$html.= ' </script></body></html>'; 

我們添加了一行

$html.= '<input type="hidden" name="charset" value="utf-8">'; 

這工作對我很好。