Click here to Skip to main content
15,905,679 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDesign-time render error for CompositeControl Pin
Fayu16-Jun-10 5:38
Fayu16-Jun-10 5:38 
Questionow to find Textbox ID's binded inside Grid view Pin
Satish_S16-Jun-10 1:22
Satish_S16-Jun-10 1:22 
AnswerRe: ow to find Textbox ID's binded inside Grid view Pin
meeram39516-Jun-10 1:26
meeram39516-Jun-10 1:26 
GeneralRe: ow to find Textbox ID's binded inside Grid view Pin
Satish_S16-Jun-10 1:35
Satish_S16-Jun-10 1:35 
AnswerRe: ow to find Textbox ID's binded inside Grid view Pin
shreekar17-Jun-10 3:51
shreekar17-Jun-10 3:51 
Questiondisplay column headers vertically Pin
priyagee16-Jun-10 0:43
priyagee16-Jun-10 0:43 
QuestionHow to use _dopostabck() in ajax tab container Pin
sudheera p16-Jun-10 0:36
sudheera p16-Jun-10 0:36 
QuestionPayPal problem Pin
Yoyosch16-Jun-10 0:02
Yoyosch16-Jun-10 0:02 
This post relates only to Express Checkout using web service and ASP.NET/C#.

I downloaded great sample application from http://www.codeproject.com/KB/aspnet/paypal_c_aspnet.aspx. I reconfigured it so that it would use my own test accounts on developer.paypal.com and it worked perfectly. Cash was substracted from client's account and added into business account.

The problem began, when I deleted the web service reference and added exactly the same reference afterwards (referencing the same address: https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl). This brought compile error in the following code snippet:

DoExpressCheckoutPaymentRequestDetails = new DoExpressCheckoutPaymentRequestDetailsType()<br />
                    {<br />
                        Token = resp.GetExpressCheckoutDetailsResponseDetails.Token,<br />
                        PaymentAction = PaymentActionCodeType.Sale,<br />
                        PayerID = resp.GetExpressCheckoutDetailsResponseDetails.PayerInfo.PayerID,<br />
                        PaymentDetails = new PaymentDetailsType()<br />
                        {<br />
                            OrderTotal = new BasicAmountType()<br />
                            {<br />
                                currencyID = CurrencyCodeType.USD,<br />
                                Value = "10.00"<br />
                            }<br />
                        },<br />
                    }




PaymentDetails is not of type PaymentDetailsType anymore. Now it became of type PaymentDetailsType[]. So I rewritten the code as follows:

DoExpressCheckoutPaymentReq payReq = new DoExpressCheckoutPaymentReq()<br />
            {<br />
                DoExpressCheckoutPaymentRequest = new DoExpressCheckoutPaymentRequestType()<br />
                {<br />
                    Version = UtilPayPalAPI.Version,<br />
                    DoExpressCheckoutPaymentRequestDetails = new DoExpressCheckoutPaymentRequestDetailsType()<br />
                    {<br />
                        Token = resp.GetExpressCheckoutDetailsResponseDetails.Token,<br />
                        PaymentAction = PaymentActionCodeType.Sale,<br />
                        PayerID = resp.GetExpressCheckoutDetailsResponseDetails.PayerInfo.PayerID,<br />
                        PaymentDetails = new PaymentDetailsType[]{ new PaymentDetailsType()<br />
                        {<br />
                            OrderTotal = new BasicAmountType()<br />
                            {<br />
                                currencyID = CurrencyCodeType.USD,<br />
                                Value = "1.00"<br />
                            },<br />
                            PaymentAction = PaymentActionCodeType.Sale<br />
                        },<br />
                        }<br />
                    }<br />
                }               <br />
            };


This however brings me the error 81115, altough PaymentAction is set twice in my code.

Could you please tell me what may be wrong? I`m really stuck now. The zip with whole small solution is available under: https://www.x.com/servlet/JiveServlet/download/175795-8095/paypal_src%20-%20copy.zip. If you have any questions please let me know.

Thank you for help in advance
AnswerRe: PayPal problem Pin
Adam R Harris16-Jun-10 4:58
Adam R Harris16-Jun-10 4:58 
QuestionRe: PayPal problem [modified] Pin
chayanban29-Dec-10 1:42
chayanban29-Dec-10 1:42 
QuestionContentPlaceHolder [modified] Pin
eslam soliman15-Jun-10 23:50
eslam soliman15-Jun-10 23:50 
AnswerRe: ContentPlaceHolder Pin
Sandeep Mewara16-Jun-10 0:21
mveSandeep Mewara16-Jun-10 0:21 
GeneralRe: ContentPlaceHolder Pin
eslam soliman16-Jun-10 1:06
eslam soliman16-Jun-10 1:06 
AnswerRe: ContentPlaceHolder Pin
KingHau16-Jun-10 21:15
KingHau16-Jun-10 21:15 
GeneralRe: ContentPlaceHolder Pin
eslam soliman16-Jun-10 22:57
eslam soliman16-Jun-10 22:57 
GeneralRe: ContentPlaceHolder Pin
KingHau17-Jun-10 0:38
KingHau17-Jun-10 0:38 
GeneralRe: ContentPlaceHolder Pin
eslam soliman22-Jun-10 1:41
eslam soliman22-Jun-10 1:41 
QuestionProcess large file in asp.net Pin
Rohit16db15-Jun-10 22:08
Rohit16db15-Jun-10 22:08 
AnswerRe: Process large file in asp.net Pin
Rhys Jacob15-Jun-10 22:13
Rhys Jacob15-Jun-10 22:13 
GeneralRe: Process large file in asp.net Pin
Rohit16db15-Jun-10 22:37
Rohit16db15-Jun-10 22:37 
AnswerRe: Process large file in asp.net Pin
meeram39516-Jun-10 1:23
meeram39516-Jun-10 1:23 
GeneralRe: Process large file in asp.net Pin
Rohit16db16-Jun-10 3:29
Rohit16db16-Jun-10 3:29 
AnswerRe: Process large file in asp.net Pin
shreekar17-Jun-10 4:03
shreekar17-Jun-10 4:03 
QuestionDataGrid Checkbox Column Unchecked!! Pin
NinaWilliam15-Jun-10 21:35
NinaWilliam15-Jun-10 21:35 
AnswerRe: DataGrid Checkbox Column Unchecked!! Pin
meeram39515-Jun-10 21:49
meeram39515-Jun-10 21:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.