How to customize Paypal Error Code 10605

Posted on 2010-01-04
Last Modified: 2013-11-18
I have integrated the paypal with my website. In the website there are 2 options of Currency. One is US Dollar and another is Indian Rupees. Now till date INR is not supported by Paypal. that is why it is giving the Error Code 10605. Now my question is how could I trap this specific Error Code and customize this particular message and then show it in another page (not the page that Paypal is showing).
Question by:akulavi
    LVL 11

    Accepted Solution

    Just Decode the Acknowledgment received from PayPal using the following Code

    string Ack =  decoder["ACK"];
                string ErrMsg="";
                if (Ack == "Failure")
                    ErrMsg = "ErrorCode=" + decoder["L_ERRORCODE0"] + "&" + "Desc=" + decoder["L_SHORTMESSAGE0"] + "&" + "Desc2=" + decoder["L_LONGMESSAGE0"];
                else if (Ack == "Success")
                    ErrMsg = "Transaction ID: " + decoder["TRANSACTIONID"] + "\n" + "Amount:" + decoder["AMT"]+"\n"+"Transfer Success";
                return ErrMsg;

    Note : The Decoder what Ive Written Is Specific for DoDirectPayment You can Customize the Above Code as per your need and Display the Exact Error Message as PayPal Do Rater displaying Error Codes.

    If the Acknowledgment results with Failure , redirect to some other page and display the error as you mentioned .

    Author Closing Comment

    Thanx for your help

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
    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:
    This video discusses moving either the default database or any database to a new volume.

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now