从购物车上的按钮发送信息到贝宝。 [英] Sending Info from button on a shopping cart to paypal.

查看:67
本文介绍了从购物车上的按钮发送信息到贝宝。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个购物车。当客户添加到购物车时,它会向paypal发送详细信息如何设置我的添加到购物车按钮以发送此信息。



这里是我的asp,net html代码。



Hi,
I have a shopping Cart. When a customer adds to cart it will send details to paypal How can i set my add to cart button to send this information.

here is my asp,net html code.

    <asp:DataList ID="dlProducts" runat="server" BackColor="White" 

        BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" 

        GridLines="Both" RepeatColumns="3" >

        <ItemTemplate>
            Product Name:
            <asp:Label ID="lblProductNane" runat="server" Text='<%# Bind("ProductName") %>'></asp:Label>
            <br />
            <asp:Image ID="Image1" runat="server" GenerateEmptyAlternateText="True" 

                Height="100px" ImageUrl='<%# "~/ProductImages/"+Eval("ImageName") %>' Width="100px" />
            <br />
            Price:
            <asp:Label ID="lblListPrice" runat="server" Text='<%# Eval("UnitPrice", "{0:C}") %>'></asp:Label>
            <br />
            Qty: 
            <br />
            <asp:LinkButton ID="lnkDetails" runat="server"  CommandArgument='<%# Bind("ProductID") %>' onclick="lnkDetails_Click">Click For Details</asp:LinkButton>
            <br />
            <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8M5EFNB9X6EH6">

<asp:ImageButton AlternateText="PayPal — The safer, easier way to pay online." ID="btnBasket" runat="server" CommandArgument='<%# Bind("ProductID") %>' OnClick="btnBasket_Click" ImageUrl="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_LG.gif" />
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1" I>
</form>
                        
        </ItemTemplate>
    </asp:DataList>





很多谢谢



Many thanks

推荐答案

这可能会对你有所帮助:

在ASP.NET中使用PayPal支付系统 [ ^ ]

创建A使用PayPal的Payflow Pro进行报告 [ ^ ]
this might help you:
Use of the PayPal payment system in ASP.NET[^]
Creating Automated Reports with PayPal’s Payflow Pro[^]


这篇关于从购物车上的按钮发送信息到贝宝。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆