删除 PayPal Checkout 中的账单地址字段
Remove billing address fields in PayPal Checkout
我目前正在使用此代码在我的网站上使用 PayPal Express Checkout 接受付款。我使用 'NO_SHIPPING' 选项删除了运输字段。由于我销售的是数字商品,因此我还想删除账单地址字段(名字、姓氏、邮编、phone、电子邮件)或至少其中的任何一个。怎么做?
<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>
账单字段用于 PayPal 的付款处理,因为它们对于与信用卡公司等的通信是必需的。它们不会退还给您,也不会包含在您看到的交易中。您无法删除它们。
我目前正在使用此代码在我的网站上使用 PayPal Express Checkout 接受付款。我使用 'NO_SHIPPING' 选项删除了运输字段。由于我销售的是数字商品,因此我还想删除账单地址字段(名字、姓氏、邮编、phone、电子邮件)或至少其中的任何一个。怎么做?
<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>
账单字段用于 PayPal 的付款处理,因为它们对于与信用卡公司等的通信是必需的。它们不会退还给您,也不会包含在您看到的交易中。您无法删除它们。