?
Solved

Indian currency in paypal

Posted on 2009-12-17
7
Medium Priority
?
2,719 Views
Last Modified: 2013-11-29
string CODE = "INR";
        StringBuilder url = new StringBuilder();
        url.Append("https://www.paypal.com/cgi-bin/webscr?" + "cmd=_xclick&business=" +
              HttpUtility.UrlEncode("shivdiamonds43@yahoo.com"));
        url.AppendFormat("&item_name={0}", HttpUtility.UrlEncode(Lblorderid.Text ));
        url.AppendFormat("&currency_code='" + CODE + "'");
        url.AppendFormat("&amount={0:f2}", lblamount.Text );

        url.AppendFormat("&cancel_return={0}", HttpUtility.UrlEncode("http://www.shivdiamonds.com"));
       
       
        return url.ToString();


but it give me error
code not valid
0
Comment
Question by:chandresh43
  • 3
  • 3
6 Comments
 
LVL 15

Expert Comment

by:jorge_toriz
ID: 26075013
In the currency code concatenation, remove the ' character.
string CODE = "INR";
StringBuilder url = new StringBuilder();
url.Append("https://www.paypal.com/cgi-bin/webscr?"
    + "cmd=_xclick&business=" 
    + HttpUtility.UrlEncode("shivdiamonds43@yahoo.com"));
url.AppendFormat("&item_name={0}", HttpUtility.UrlEncode(Lblorderid.Text ));
url.AppendFormat("&currency_code=" + CODE);
url.AppendFormat("&amount={0:f2}", lblamount.Text );
url.AppendFormat("&cancel_return={0}", HttpUtility.UrlEncode("http://www.shivdiamonds.com"));

Open in new window

0
 
LVL 5

Author Comment

by:chandresh43
ID: 26077808
i get error
This recipient either does not accept payments denominated in INR or has specified an invalid currency code on his web site. Please contact the seller and ask him either to update his payment receiving preferences to accept this currency or to correct his web site to specify a valid currency code.
0
 
LVL 15

Expert Comment

by:jorge_toriz
ID: 26084889
Sorry, I didn't realize that you are using an unsupported currency code.    Check this: https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/Marketing/seller/mc/MCIntro-outside

You must use a currency from the list
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Author Comment

by:chandresh43
ID: 26085939
i know that
but i want indian currency
what i do please help
0
 
LVL 15

Accepted Solution

by:
jorge_toriz earned 1500 total points
ID: 26097896
All that you can do is to call PayPal and ask them to implement your currency, but I think this will be impossible, they add currencies support as they believe that are needed.
0
 
LVL 5

Author Closing Comment

by:chandresh43
ID: 31667460
no replay at
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
In the below post we have mentioned the best hosting type for startups. Also, check out some of the superlative web hosting companies that are proposing affordable web hosting solutions to host your startup website.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question