如何将paypal SDK集成到Windows应用程序? [英] How to integrate paypal SDK to windows application ?

查看:232
本文介绍了如何将paypal SDK集成到Windows应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们必须在基于c#的桌面应用程序中实现paypal sdk。



如果有Web应用程序,我们可以轻松地重定向到支付网关并处理付款,但是在win形式中如何管理付款申请流程?



如果有人对这个问题有任何建议会很好。

< br $> b $ b

谢谢



我的尝试:



我们已经实施了rest api但它无法给出正确的付款流程。



we have to implement paypal sdk in desktop application which is based on c#.

if there is web application we can easily redirect to payment gateway and process payment ,but in win form how to manage payment request process ?

it will be great if any one have some suggestion about this issue.


thanks

What I have tried:

we have implemented rest api but it can not give proper flow of payment.

APIContext apiContext = WebApplication1.Models.Configuration.GetAPIContext();

Payment createdPayment = pymnt.Create(apiContext);

I have implemented using PayPal SDK but it always gives error of DUPLICATE_DEBUG ID

Any one have idea about this error ?





这给出了重复调试ID的错误。



this gives error of duplicate debug id.

推荐答案

您应该访问PayPal网站并研究他们的文档。他们的SDK很可能只是为了通过他们的网站工作,所以你的桌面应用需要使用一些HTTP类来访问它。
You should go to the PayPal website and study their documentation. It is likely that their SDK is designed only to work through their website, so your Desktop app would need to use some HTTP classes to access it.


这篇关于如何将paypal SDK集成到Windows应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆