solidus_paypal_braintree
solidus_paypal_braintree copied to clipboard
Handle changed address from Apple Pay sheet
It's possible for customers to change the delivery address from the Apple Pay sheet. We should either lock this down to prevent changing the address, or respond to the change by updating the shipment.
The latter can be done in app/assets/javascripts/solidus_paypal_braintree/apple_pay_button.js by giving the session an onshippingcontactselected handler
var session = new ApplePaySession(SolidusPaypalBraintree.APPLE_PAY_API_VERSION, paymentRequest);
session.onshippingcontactselected = function (event) {
// TODO: Update the order
};
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.