Paypal 我如何用贝宝付款?
如何使用此URLPaypal 我如何用贝宝付款?,paypal,Paypal,如何使用此URLhttps://api-3t.sandbox.paypal.com/nvp从这个URL发出请求有什么不同吗https://svcs.sandbox.paypal.com/AdaptivePayments和此URLhttps://api-3t.sandbox.paypal.com/nvp。提前感谢。通过paypal付款的唯一方法是使用沙箱,您可以使用paypal.com提供的购物车或销售单品选项,并将链接复制到您的网站,或者您可以向网站添加代码,将信息从网站发送到paypal 是,
https://api-3t.sandbox.paypal.com/nvp
从这个URL发出请求有什么不同吗https://svcs.sandbox.paypal.com/AdaptivePayments
和此URLhttps://api-3t.sandbox.paypal.com/nvp
。提前感谢。通过paypal付款的唯一方法是使用沙箱,您可以使用paypal.com提供的购物车或销售单品选项,并将链接复制到您的网站,或者您可以向网站添加代码,将信息从网站发送到paypal 是,您可以从html或编程页面发送
看看这些代码
常量字符串服务器\u URL=”https://www.paypal.com/cgi-bin/webscr?";
const string return_URL=“您的网站URL”;
const string cancelreturn\u URL=“您的网站URL”;
字符串cmd=“\u xclick”;
string business=“您的贝宝ID”;
字符串item_name=“您的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 += "¤cy_code=" + currency_code;
redirect += "&lc=" + lc;
redirect += "&bn=" + bn;
redirect += "&return=" + return_URL;
redirect += "&cancel_return" + cancelreturn_URL;
Profile.SCart = null;
Response.Redirect(redirect);
你可以添加一个按钮到你的网站,并添加这些代码的对接行动
贝宝有一个测试网站,所以你可以使用它来测试你的代码
使用此链接并创建买方和卖方IDMY=马来西亚国家的lc缩写 bn是贝宝的标准写法,就像这个例子一样 业务您的贝宝id(卖家),
cmd像这个例子一样写谢谢你的回答,你告诉我们可以将信息发送到paypal网站,对吗?我能说清楚一点。提前感谢我在沙盒中创建了帐户。什么是信用证、bn、业务、cmd?提前谢谢