Git Product home page Git Product logo

Comments (9)

kennyadsl avatar kennyadsl commented on July 26, 2024

Same issue here. Have you already solved this problem?

from spree_paypal_express.

kennyadsl avatar kennyadsl commented on July 26, 2024

The missing "State" attribute refers to address, not to a state machine model. Looking deeper...

from spree_paypal_express.

patrickmcelwee avatar patrickmcelwee commented on July 26, 2024

I upgraded to 1.0 and was hoping it might solve the issue, which I have only seen with one customer. One problem is that I can't reproduce the error. Later today, I will take a look at my production logs to see if the issue has recurred.

from spree_paypal_express.

patrickmcelwee avatar patrickmcelwee commented on July 26, 2024

The issue has recurred ... this time with a customer from Norway.

It looks to me that the error must be raised when the checkout controller assigns the returning PayPal address to @order.ship_address and then tries to save it.

One way to fix would be to check whether the returning state is blank, and if so, to skip changing the ship_address.

Actually, I think my preferred solution would be to eliminate the overwriting of the Spree shipping address altogether. In my experience, the Spree address is more likely to be correct, since they must enter it at the time of order - while it is more difficult to change a PayPal address, which is stored over a longer period of time. Or, at least, if we are going to override what they entered, we should ideally give them the opportunity to confirm that.

from spree_paypal_express.

kennyadsl avatar kennyadsl commented on July 26, 2024

Ok, so setting "No shipping" via admin interface will solve the issue.

from spree_paypal_express.

 avatar commented on July 26, 2024

I have this issue today ... but it happens only when selecting credit card in Paypal account ..
If user select his Paypal account , processing return is OK
see logs in gist : https://gist.github.com/erwin/5037469

It seems that using CreditCard in Paypal is returning user infos ( address ) without the 'state' info

from spree_paypal_express.

 avatar commented on July 26, 2024

sorry I may have posted in the wrong git .. should have posted it in Spree .. but it's related ...

from spree_paypal_express.

jumph4x avatar jumph4x commented on July 26, 2024

@kennyadsl Can you elaborate on the effects of changing No shipping?

from spree_paypal_express.

kennyadsl avatar kennyadsl commented on July 26, 2024

@jumph4x As far as I can remember ( it's a 8 months ago comment :) ) setting to No shipping will prevent PayPal to pass address data to spree or viceversa.

from spree_paypal_express.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.