简体   繁体   English

使用ASP.NET MVC的PayPal API

[英]PayPal API with ASP.NET MVC

Is it the paypal API compatible with asp.net MVC? 它是与asp.net MVC兼容的paypal API吗? Does anyone know of any expamples of how to implement it? 有谁知道如何实现它的任何例子? Thank you. 谢谢。

yes it is compatible. 是的它是兼容的。

Have a look at MVC Storefront Starter Kit videos. 看看MVC Storefront入门套件视频。

Episode 22 is dedicated to Paypal 第22集专门用于Paypal

Recently I implemented a PayPal 'Buy Now' button in a ASP.NET MVC Razor view. 最近我在ASP.NET MVC Razor视图中实现了PayPal“立即购买”按钮。 In the end the button is just a HTML form that is posted to the PayPal website. 最后,按钮只是一个发布到PayPal网站的HTML表单。 However, it took me some time to find out which hidden form fields were required, and which optional fields I could also use to further configure the payment process. 但是,我花了一些时间来找出需要哪些隐藏的表单字段,以及我还可以使用哪些可选字段来进一步配置付款流程。 I have published my experiences on my blog: http://buildingwebapps.blogspot.com/2012/01/single-item-paypal-buttons-and.html . 我在我的博客上发布了我的经验: http//buildingwebapps.blogspot.com/2012/01/single-item-paypal-buttons-and.html There you will also find the source code for an MVC Html helper method that makes rendering single-item PayPal buttons less work. 在那里,您还可以找到MVC Html辅助方法的源代码,该方法可以降低单项PayPal按钮的工作量。

Source: Paypal add to cart multiple items form with discount 来源: Paypal添加到购物车多个项目形式与折扣

I have successfully integrated the PayPal express checkout with shopping cart in to one of my Asp.net MVC projects with discount codes, shipping charges etc. 我已成功将PayPal快速结账与购物车整合到我的一个Asp.net MVC项目中,并附有折扣代码,运费等。

Take a look at this site. 看看这个网站。 http://www.arunrana.net/2012/01/paypal-integration-in-mvc3-and-razor.html http://www.arunrana.net/2012/01/paypal-integration-in-mvc3-and-razor.html
It is specifically designed for MVC3 with Razor! 它专为带Razor的MVC3而设计!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM