Click here to Skip to main content
12,394,971 members (77,510 online)
Rate this:
 
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
postonoh1.9K
Updated 18-Jun-12 9:10am
v9
Comments
Zoltán Zörgő 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 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ő 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 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
Top Experts
Last 24hrsThis month


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100