I've been trying to figure this out in the documentation, I found the address thing right here:
https://developer.paypal.com/docs/api/payments/v2/#definition-address_portable
But I have no idea how to implement that change on my Paypal checkout button, there are no examples on how to implement it, does anyone know how?
This is what my Paypal sandbox checkout looks like right now (I skipped everything below createOrder)
<script>
paypal.Buttons({
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '<?=$total?>'
},
description: '<?=$description?>'
}]
});
}
// Skipped...
</script>