Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Handle changed address from Paypal #163

Closed
digitalWestie opened this issue Apr 6, 2018 · 3 comments
Closed

Handle changed address from Paypal #163

digitalWestie opened this issue Apr 6, 2018 · 3 comments

Comments

@digitalWestie
Copy link

Related to issue #106 "Handle changed address from Apple Pay sheet" - it's possible for the user to select PayPal, bounce off to PayPal and change their address, potentially to an unsupported shipping location.

@mntmn
Copy link

mntmn commented Apr 17, 2018

Yep, similar problem here. A company name that is entered in Solidus (when the "company" config of Solidus is enabled) gets lost in the process. Also, address validation can silently fail after returning from Paypal. I'd prefer an option to disable the address import from Paypal/Braintree completely.

@mntmn
Copy link

mntmn commented Apr 17, 2018

The following decorator works for me to ignore address changes coming from Braintree transactions:

module MntmnTransactionImportDecorator
  def address
    nil
  end
end

SolidusPaypalBraintree::TransactionImport.prepend(MntmnTransactionImportDecorator)

@digitalWestie
Copy link
Author

Worked perfectly @mntmn !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants