简体   繁体   English

使用Paypal和ASP.Net

[英]Using Paypal and ASP.Net

I have 2 websites, one of them just plain HTML and php, the other one asp.net. 我有2个网站,其中一个只是纯HTML和php,另一个是asp.net。 The problem is, i want to use the PHP website with the paypal buttons to sell my product. 问题是,我想使用带有Paypal按钮的PHP网站来销售我的产品。 Then they get redirected (after successfull payment) to the asp.net website, where they can create an account. 然后将他们重定向(成功付款后)到asp.net网站,他们可以在其中创建一个帐户。 That page should be able to get all the custom variables from the paypal redirect, but i don't want them to be visible in the URL. 该页面应该能够从贝宝重定向中获取所有自定义变量,但是我不希望它们在URL中可见。

Is this possible? 这可能吗? And if not, any suggestions? 如果没有,有什么建议吗?

You will receive all necessary data from PayPal to URL, specified as return URL. 您将收到从PayPal到URL(指定为返回URL)的所有必要数据。 Validate these values and that's all :) 验证这些值,仅此而已:)

PayPal has an API for this that is not about passing variables around. 贝宝(PayPal)为此提供了一个与传递变量无关的API。

This is the Express Checkout option you are speaking of. 这是您正在谈论的Express Checkout选项。

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECGettingStarted https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECGettingStarted

You define a callback URL that will provide you with that information. 您定义一个回调URL,它将为您提供该信息。

I have a library to do this for KitGUI.com but its not open source. 我有一个库可以为KitGUI.com做到这一点,但它不是开源的。

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

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