我怎样才能用PayPal付款?

时间:2011-05-04 13:38:52

标签: paypal

如何使用此网址https://api-3t.sandbox.paypal.com/nvp进行付款,此网址https://svcs.sandbox.paypal.com/AdaptivePayments和此网址https://api-3t.sandbox.paypal.com/nvp是否有任何差异。提前谢谢。

3 个答案:

答案 0 :(得分:1)

通过paypal付款的唯一方法是使用沙箱,您可以使用购物车或出售由paypal.com提供的单项选项并将链接复制到您的网站,或者您可以添加代码到您的网站发送信息从您的网站到paypal。

答案 1 :(得分:1)

是的,你可以从html或编程页面发送 看看这些代码

const string Server_URL =“https://www.paypal.com/cgi-bin/webscr?”; const string return_URL =“您的网站网址”; const string cancelreturn_URL =“您的网站网址”;  string cmd =“_ xclick”;    string business =“您的PayPal ID”;     string item_name =“您的项目名称”;             双倍金额= 1;

        double handling = 00.00;
        int no_shipping = 0;
        int no_note = 0;
        string currency_code = "MYR"; //Replace with country Currency code
        string lc = "MY";
        string bn = "PP-BuyNowBF";
        string redirect = "";
        redirect += Server_URL;
        redirect += "cmd=" + cmd;
        redirect += "&business=" + business;
        redirect += "&item_name= " + item_name;
        redirect += "&amount=" + amount;
        redirect += "&shipping=" + shipping;
        redirect += "&handling=" + handling;
        redirect += "&no_shipping=" + no_shipping;
        redirect += "&no_note=" + no_note;
        redirect += "&currency_code=" + currency_code;
        redirect += "&lc=" + lc;

        redirect += "&bn=" + bn;
        redirect += "&return=" + return_URL;

        redirect += "&cancel_return" + cancelreturn_URL;
        Profile.SCart = null;
        Response.Redirect(redirect);

您可以在网站上添加一个按钮,并添加这些代码以进行操作 有一个paypal的测试网站,所以你可以使用它并测试你的代码 使用此链接https://developer.paypal.com/并创建买方和卖方ID

答案 2 :(得分:0)

国家MY =马来西亚的缩写 bn是paypal写的标准,就像这个例子 bussiness your paypal id(卖方), cmd写得像这个例子