有没有人做过 google checkout ?
想获得google checkout 付款后返回的信息。如果谁做过,帮助下。谢谢。 --------------------编程问答-------------------- mark --------------------编程问答-------------------- 以前做过一个欧美网站的订单用过,你自己看着改改吧
--------------------编程问答-------------------- 没做过。关注下楼上的 --------------------编程问答-------------------- up --------------------编程问答-------------------- 2楼那应该是提交代码吧,我现在是需要 返回信息ipn.
private void SubmitFormToGoogle(Order[] orderList)
{
string formStr = String.Empty;
for (int i = 0; i < orderList.Length; i++)
{
formStr += @"<input name='item_name_" + (i + 1).ToString() + @"' type='hidden' value='" + orderList[i].DeliverAddr + @"'/>
<input name='item_description_" + (i + 1).ToString() + @"' type='hidden' value='" + "ID:" + orderList[i].OrderGameID.ToString() +" Num:"+ orderList[i].UserOrderId.ToString() + @"'/>
<input name='item_quantity_" + (i + 1).ToString() + @"' type='hidden' value='" + orderList[i].Quantity.ToString() + @"'/>
<input name='item_price_" + (i + 1).ToString() + @"' type='hidden' value='" + orderList[i].Price * (Convert.ToDecimal(lblComDiscount.Text.Replace("%",""))/100) + @"'/>";
}
Response.Write(@"<form action=""https://checkout.google.com/cws/v2/Merchant/351788037068007/checkoutForm""
id=""BB_BuyButtonForm"" method=""post"" name=""BB_BuyButtonForm"">" + formStr + @"
<input name='item_currency_1' type='hidden' value='USD'/>
<input name='_charset_' type='hidden' value='utf-8'/>
</form>
<div id=""flaoWindow"" style=""position:absolute; width:100%; height:110%; top:0; left:0; z-index:9999; background-color:white;"">
<div style=""font-size:20px; color:red; width:100%; height:30px; text-align:center; margin-top:200px; left:0;"">Loading...</div>
</div>
<script type=""text/javascript"">
function paypal(){
document.getElementById('BB_BuyButtonForm').submit();
document.body.style.overflow = 'hidden';
document.getElementById('usdselect').style.visibility = 'hidden';
}
window.onload = paypal;
</script>
");
}
补充:.NET技术 , C#