我目前正在使用此代码通过PayPal Express Checkout在我的网站上接受付款。我使用“ NO_SHIPPING”选项删除了运送字段。由于我在销售数字商品,因此我也想删除帐单邮寄地址字段(名字,姓氏,邮政编码,电话,电子邮件)或至少其中的任何一个。该怎么做?
<script src="https://www.paypal.com/sdk/js?client-id={client-id}"></script>
<script>
render_paypal_button();
function render_paypal_button() {
paypal.Buttons({
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: 1.00
}
}],
application_context: {
shipping_preference: 'NO_SHIPPING'
}
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
});
}
}).render('#paypal-button-container');
</script>
答案 0 :(得分:2)
计费字段用于PayPal的付款处理,因为它们是与信用卡公司进行通信所必需的。它们不会退还给您,也不包含在您看到的交易中。您无法删除它们。