Indian currency in paypal

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
LVL 5
chandresh43Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jorge_torizResearch & Development ManagerCommented:
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

chandresh43Author Commented:
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.
jorge_torizResearch & Development ManagerCommented:
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
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

chandresh43Author Commented:
i know that
but i want indian currency
what i do please help
jorge_torizResearch & Development ManagerCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chandresh43Author Commented:
no replay at
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
E-Commerce

From novice to tech pro — start learning today.