Verify paypal payment using C#

人盡茶涼 提交于 2019-12-11 23:45:10

问题


I'm quite new to PayPal integration.

Currently I'm working on a mobile app that allows me to make payment to my merchant. However, after making a payment using the app, the transaction is reflected as "pending". I've read in some places I am required to verify the payment.

I've don't quite understand how it works, because I need to write it in C# however most of the documentation requires me to do a cURL command.

Any place or documentation that allows me to get started with the verification of payment?

Any help would be greatly appreciated, thank you!


回答1:


PayPal has an officially supported .NET sdk for anything you need to do server side. Here are samples




回答2:


I use the IPN (Instant Payment Notification) from Paypal and used this site as a base for my code. The PayPal developer site has plenty of tips, you just have to apply the logic C#, where there isn't a code example.

Another Controller is available on https://mvcsamples.svn.codeplex.com/svn/trunk/Kona.Web/Controllers/PayPalController.cs



来源:https://stackoverflow.com/questions/28810202/verify-paypal-payment-using-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!