简体   繁体   English

paypal 与 c# 集成在 asp.net 中

[英]paypal integration in asp.net with c#

I am trying to integrate paypal gateway in my aspx page having shopping cart.我正在尝试将 paypal 网关集成到我的带有购物车的 aspx 页面中。 I succeed to commit transaction using express checkout method generated by paypal integration wizard but what I am being unable to do is sending product quantity and details to paypal page.我使用 paypal 集成向导生成的快速结帐方法成功提交交易,但我无法将产品数量和详细信息发送到 paypal 页面。

And how can I redirect to my own review page where shipping and billing address is present after log in into the paypal?登录 paypal 后,如何重定向到我自己的评论页面,其中存在送货地址和帐单地址?

how can i redirect to my own review page where shipping and billing address我如何重定向到我自己的评论页面,其中包含送货和账单地址

First you need to send a unique number id for the order that is connected to your database with the information that you like to show after the purchase.首先,您需要为连接到数据库的订单发送一个唯一编号 ID,其中包含您希望在购买后显示的信息。

Then you send the "return" parametre with the full url with the unique id of your order that your customer will return and you need to show the final informations.然后,您发送带有完整 url 的“退货”参数以及您的客户将退回的订单的唯一 ID,您需要显示最终信息。

eg:例如:
<input type="hidden" name="return" value="https://www.urls.con/orderinfos.aspx?TID=112999182">

of cource for better protection is good to encode some how your order id.为了更好的保护,当然最好对您的订单 ID 进行一些编码。 All of that exist on the paypal sdk manual.所有这些都存在于 paypal sdk 手册中。

Also return url are the "notify_url" to be notify even if the user not return, and "cancel_return " in case of cancel the payment还返回 url 是即使用户不返回也要通知的"notify_url" ,以及取消付款时的"cancel_return

You can also search for PDT for the return , and IPN for the notify for more advanced information.您还可以搜索PDT 的 returnIPN 的 notify以获得更多高级信息。

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

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