简体   繁体   English

将Moneybookers集成到WPF应用程序中

[英]Integrate Moneybookers into WPF applications

I would like to integrate moneybookers payment-gateway into a WPF-application. 我想将Moneybookers的付款门户集成到WPF应用程序中。 Accroding to the official gateway manual I need to redirect the user to the moneybookers payment-page and submit some fields posted within an html-form. 进入官方网关手册,我需要将用户重定向到moneybookers的付款页面,并提交html表单中发布的一些字段。 Has anyone an idea how I could solve this task? 有谁知道我如何解决这个任务?

Best regards! 最好的祝福!

Yes, all you need to do is: 是的,您需要做的是:

  1. Include a Frame control in your WPF application. 在WPF应用程序中包括一个Frame控件。
  2. Include a .html file in your WPF application that contains a element with the appropriate data and some JavaScript to automatically post the form when the page is loaded. 在WPF应用程序中包含一个.html文件,该文件包含具有适当数据的元素和一些JavaScript,这些元素可以在加载页面时自动发布表单。
  3. When it is time for payment, have your display the Frame control and set its Url to the relative path of the .html file. 当需要付款时,请显示Frame控件并将其Url设置为.html文件的相对路径。

When the user is done paying you can give them a button to close the Frame yourself, or you can subscribe to the Navigated event on the Frame and when the payment processor causes them to navigate back to your fake HTML you can automatically close the Frame and use your own WPF UI to tell them "congratulations, thanks for paying". 当用户付款完毕后,您可以给他们一个按钮以自行关闭框架,或者您可以订阅框架上的Navigated事件,并且当付款处理器使他们导航回您的假HTML时,您可以自动关闭框架并使用您自己的WPF用户界面告诉他们“恭喜,感谢您的付款”。

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

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