Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# MVC3
I have using the following code to try to work with my MVC. I am not using aspx. I using cshtml.
 
I copy the code form the following website that get me part of the way.
http://www.superstarcoders.com/blogs/posts/paypal-with-asp-net-mvc.aspx[^]
 
I have change the code to match new NVP ie AMT to PAYMENTREQUEST_0_AMT, DESC to PAYMENTREQUEST_0_DESC and so on. Yet the product and dollar amount is not passing to paypal.
 
Please if any can help I would appreciated.
 
I have look at the following video.
http://www.asp.net/mvc/videos/mvc-1/aspnet-mvc-storefront/aspnet-mvc-storefront-part-22-restructuring-rerouting-and-paypal[^]
 

 
I cannot get the amount and product number to pass to the order summary. Plus when i login to test account to process amount not process. I am not getting an error because the description is is showing in the paypal order summary. How much to fix if I uplaod my files. The link is what I getting when I click submit button
My Paypal Image file
Here are the Zip files Zip files
Posted 13-Jun-12 9:32am
Edited 18-Jun-12 9:10am
v9
Comments
Zoltán Zörgő at 13-Jun-12 15:43pm
   
You can do everything in razor what you can do in aspx. It is only an other templating engine. And it affects only the views. The controllers and models are the same. And by the way, you can mix them, if you are lazy: one view in razor, other in aspx :)
Try first the original code you have linked. if that works, you can change your related views to razor. If not, then the problem lies elsewhere.
shelbyposton at 13-Jun-12 15:57pm
   
Let me understand. I can create aspx pages with razor pages. I will try if so you have been very valuable to me. thanks. If this works I only have to rewrite two forms
Zoltán Zörgő at 13-Jun-12 16:27pm
   
Not exactly - but I suppose this is enough for you. You can have both aspx and cshtml views in one application.
shelbyposton at 13-Jun-12 17:12pm
   
I can have both aspx and cshtml views in one application. That is what I mean.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Check in the form tag for the required parameter for paypal is correct.
then submit the view(form).
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CHill60 360
1 OriginalGriff 203
2 Sarvesh Kumar Gupta 168
3 RyanDev 145
4 Peter Leow 145


Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 19 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid