solidus_paypal_braintree icon indicating copy to clipboard operation
solidus_paypal_braintree copied to clipboard

Handle changed address from Apple Pay sheet

Open isaacfreeman opened this issue 8 years ago • 1 comments

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
  };

isaacfreeman avatar Jul 11 '17 01:07 isaacfreeman

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.

stale[bot] avatar Nov 11 '22 11:11 stale[bot]