Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
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.
postonoh 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.
postonoh 13-Jun-12 17:12pm    
I can have both aspx and cshtml views in one application. That is what I mean.

1 solution

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900