使用C#asp.net在网站上的PayPal结账 [英] PayPal checkout in web Site using C# asp.net
问题描述
大家好,我正在实施一个eshop网站,我在那里实现了自己的购物车。
我想问我怎样才能将我的购物卡支付宝的产品发送到paypal ?
我在codeproject的一篇文章中找到了一个工作正常的例子,但我不知道如何用我的值(从购物卡)改变一些静态值,
我的意思是该代码中的
:
Hi guys I' m implemeting an eshop web site where i implemeted my own shopping cart.
I want to ask how can i send my "products" of my shopping card paypal for checkout to paypal?
I found in an article here in codeproject an example which works fine but I don't know how to change some static values with my values (from shopping card),
what i mean is
in that code:
<input type="hidden" name="item_name" value="Product1" />
<input type="hidden" name="amount" value="100.00" />
<input type="submit" value="Pay" />
i不希望值(product1,100)但是
从我从购物车中检索的正确数据,它们存储在数据库表(item_sales)中。
提前为您提供Thnx时间!!
杰森
i don't want the values(product1,100) but
the correct data from my retrieving from shopping cart which they are stored in a database table (item_sales).
Thnx in advance for yours time!!
Jason
推荐答案
我终于找到了它......
受保护的字符串Id_product {get;组; }
I found it at last...
protected string Id_product { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
this.Id_Product = "something";
}
}
and in source file
<input type="text" name="txt" value="<%= this.Id_Product %>" />
这篇关于使用C#asp.net在网站上的PayPal结账的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!