Documentation
Download the latest version
|
Process payment on spanish paypal site?
An user
7/1/2009 2:04:43 PM
Hello,
I would like the user to go to the spanish version of the paypal site (where all the text is in spanish). How can I accomplish this?
Thank you!
sb
|
Resolution:
- [SpiceLogic Support Technician]
7/1/2009 2:38:54 PM
Hi Santiago,
Thanks for choosing our product.
You can do this either from Design Mode property browser or programmatically. The control comes with a composite property named BuyerInfo. This BuyerInfo contains various sub properties and one of them is "CountryLanguage" which is enumerated for PayPal supported languages.
For example, here is the snippet for setting language "Spanish" programmatically if you choose to enable PostBack and handle Click Event Handler for your button.
protected void BuyNowButton1_Click(object sender, ImageClickEventArgs e)
{
BuyNowButton1.BuyerInfo.CountryLanguage = PayPalBuyerInfo.LanguageCodes.ES;
}
Or, you can set this property in the Page's Load event like this:
protected void Page_Load(object sender, EventArgs e)
{
BuyNowButton1.BuyerInfo.CountryLanguage = PayPalBuyerInfo.LanguageCodes.ES;
}
I would suggest to set this property from the Design Mode as shown in the attached ScreenShot.
Please do not hesitate to write us back if you need any more assistance.
Regards.
|
An user
7/1/2009 3:33:08 PM
Thank you Nathan,
that works just fine.
Another problem I have is with special spanish caracters:
PayPalItemitem= newPayPalItem(this.rblMembership.SelectedItem.Text, strId, 1, Convert.ToDecimal(dMembershipPrice)); // this.rblMembership.SelectedItem.Text = "Membresia tres años - $249.99"
UploadCompleteCartButton1.PayPalCartItems.Add(item);
is showing like this in the paypal site:
Membresia tres años - $249.99
The 'ñ' character is not displaying properly.
Any idea what is happening?
Thank you!
|
- [SpiceLogic Support Technician]
7/1/2009 10:27:52 PM
Hi Santiago,
I did not understand which part is your comment and which part is snippet, from these lines:
PayPalItemitem= newPayPalItem(this.rblMembership.SelectedItem.Text, strId, 1, Convert.ToDecimal(dMembershipPrice)); // this.rblMembership.SelectedItem.Text = "Membresia tres años - $249.99"
UploadCompleteCartButton1.PayPalCartItems.Add(item);
Would you please clearly separate them out, (write every statement or comment and different lines) and let me know exactly which statement is giving problem. We will study the problem for sure.
|
An user
7/2/2009 4:42:17 AM
Nathan,
this is the actual code.
PayPalItemitem= newPayPalItem(this.rblMembership.SelectedItem.Text, strId, 1, Convert.ToDecimal(dMembershipPrice));
UploadCompleteCartButton1.PayPalCartItems.Add(item);
I had just added this comment so you know what the contents of: this.rblMembership.SelectedItem.Text are.
// this.rblMembership.SelectedItem.Text = "Membresia tres años - $249.99"
sb
|
- [SpiceLogic Support Technician]
7/2/2009 6:43:07 AM
Dear Santiago,
Thanks for the explanation. Ok, would you please create a very simple web application with very simple data and regenerate the problem in that application and make a ZIP file and attach the file here ? Once we can see your application, we can find a solution for sure. As we did not do much experiment with foreign languages, so, may be something we are missing in our control and once we get that, we will fix the problem and release a version. Also, if we find that, something is wrong done in your end, we will guide you for solution. Please do not include any membership specific stuffs in your sample application. Because that will make the debugging complicated.
Regards
|
An user
7/11/2009 8:07:43 AM
Hello Nathan,
sorry for the delay. I have been busy with other things...
It is actually very simple to reproduce the issue.
Just add this line of code:
UploadCompleteCartButton1.PayPalCartItems.Add(newPayPalItem("1 año", "abcdef", 1, 12.99M));
to the function:
protected voidUploadCompleteCartButton1_Click(objectsender, ImageClickEventArgse)
in UploadingItemsToPayPalFrom3rdPartyShoppingCart.aspx
from the sample project that ships with your control.
you will see that when you hit the 'buy now' button this will appear in the paypal site:
1 año instead of 1 año.
Thank you!
|
Resolution:
- [SpiceLogic Support Technician]
7/16/2009 8:58:08 PM
Dear Santiago,
We found the solution for your problem. Please set charset property to UTF_8. Charset is an enum type property which takes various encoding.
I have attached the screenshot if you need to know how to find this property from the property browser.
Please do not hesitate to write us back if you need any more assistance.
Regards
|
|
|