Comments (9)
Same issue here. Have you already solved this problem?
from spree_paypal_express.
The missing "State" attribute refers to address, not to a state machine model. Looking deeper...
from spree_paypal_express.
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.
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.
Ok, so setting "No shipping" via admin interface will solve the issue.
from spree_paypal_express.
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.
sorry I may have posted in the wrong git .. should have posted it in Spree .. but it's related ...
from spree_paypal_express.
@kennyadsl Can you elaborate on the effects of changing No shipping
?
from spree_paypal_express.
@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)
- error w latest shared / _order_details / add_paypal_details.html.erb.deface HOT 3
- 1-3-stable, undefined method `payment' HOT 2
- Unable to configure Checkout from Cart
- Installation Issues - Spree 1.3.2 HOT 2
- PayPal Page - Logo
- Missing localized phrase: (not given)
- Can't bundle 2-0-stable when using spree/spree/2-0-stable HOT 1
- Development guidelines HOT 3
- Cannot choose another Payment method after having choosed Paypal then canceled
- Branch 2-0-stable - cannot access order#show HOT 17
- Rails 4 without protected_attributes gem will fail on attr_accessible HOT 4
- re: undefined method `shipping_method' HOT 20
- error when order is completed HOT 1
- Rebase/update 2-0-stable branch HOT 1
- bundle exec rails g spree_paypal_express:install HOT 1
- Is this extension compatible with Google Ecommerce Analytics? HOT 1
- Add options to paypal checkout HOT 2
- Capturing payment through spree admin fails (works on paypal) HOT 1
- Shipping Address overridden HOT 6
- I cant't run my spree project in production environment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree_paypal_express.