[英]How to add shipping address in paypal express checkout
I am using following code for Paypal express checkout,我正在使用以下代码进行 Paypal 快速结帐,
<form id="paypal-form" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="name@email.com">
<input type="hidden" name="currency_code" value="USD">
<div><input type="hidden" name="quantity_1" value="1"></div>
<div><input type="hidden" name="item_name_1" value="Tomato"></div>
<div><input type="hidden" name="item_number_1" value="SKU Tomato"></div>
<div><input type="hidden" name="amount_1" value="700.70"></div>
<div><input type="hidden" name="shipping_1" value="0.00"></div>
<span class="waves-input-wrapper waves-effect waves-light"><input type="submit" id="paypal-btn" class="btn btn-primary btn-sm px-3 rounded-pill" value="Pay with PayPal"></span>
</form>
https://www.sandbox.paypal.com/cgi-bin/webscr
.https://www.sandbox.paypal.com/cgi-bin/webscr
的现场制作 url。 Edit: Solution from Preston PHX - This link provide available variables.编辑:Preston PHX 的解决方案 - 此链接提供可用变量。 I can use
address_override
.我可以使用
address_override
。 Live url is https://www.paypal.com/cgi-bin/webscr
.直播 url 是
https://www.paypal.com/cgi-bin/webscr
。 Also It seems to be not possible to add additional emails to get notification.此外,似乎无法添加其他电子邮件以获取通知。
That's not an express checkout, that is the old HTML payments standard .这不是快速结帐,而是旧的HTML 付款标准。
You should use the current PayPal Checkout .您应该使用 当前的 PayPal Checkout 。 The best flow obtains the address from PayPal after the user signs in, so they don't have to enter it manually if it's saved in their account.
最好的流程是在用户登录后从PayPal获取地址,所以如果保存在自己的账户里就不用手动输入了。 This allows for faster checkouts.
这允许更快的结帐。 You can adjust the total based on the address before capturing.
您可以在捕获前根据地址调整总数。 It's also possible to offer different shipping options based on the address chosen.
还可以根据所选地址提供不同的运输选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.