Jump to content

Product name garbled in Paypal form action on order.php


Recommended Posts

I found out that when a customer chooses languages other than English, the product name on Paypal payment page is shown as ??????.

I see that order.php is not passing the product name value correctly. name="item_name_1" in <form action> section of the order.php source is looking like the following.

I'm wondering where encoding is going wrong for product name value. The product attribute is encoded properly and displayed correctly both on order.php source and Paypal payment page.

 

 


<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="paypal_form" class="hidden">
   <input type="hidden" name="upload" value="1" />
   <input type="hidden" name="first_name" value="XXX" />
   <input type="hidden" name="last_name" value="XXX" />
   <input type="hidden" name="address1" value="XXX" />
   <input type="hidden" name="city" value="XXX" />
   <input type="hidden" name="zip" value="XXX" />
   <input type="hidden" name="country" value="JP" />
   <input type="hidden" name="amount" value="4500.00" />
   <input type="hidden" name="email" value="[email protected]" />
   <input type="hidden" name="shipping_1" value="0.00" />
   <input type="hidden" name="item_name_1" value="????? ???????? - ステンレス" />
   <input type="hidden" name="amount_1" value="4500.00" />
   <input type="hidden" name="quantity_1" value="1" />


 

 


I'd really appreciate if anyone can point me to the right direction.

 

 


Thank you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...