Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move 'shipping_preference' preference under PaypalOrder#to_json #152

Merged
merged 4 commits into from
Nov 22, 2022

Conversation

retsef
Copy link
Contributor

@retsef retsef commented Dec 20, 2021

Fix #133 shipping_preference with 'NO_SHIPPING' is now provided under PaypalOrder#to_json, otherwise 'SET_PROVIDED_ADDRESS'

@retsef
Copy link
Contributor Author

retsef commented Dec 20, 2021

Cleanup of #134. @DanielePalombo I tried to cleanup the git history at the best I could.

end

def require_shipping?
step_names = @order ? @order.checkout_steps : ::Spree::Order.checkout_steps.keys
Copy link
Contributor

@RyanofWoods RyanofWoods Dec 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @retsef 👋
@order.checkout_steps returns strings
::Spree::Order.checkout_steps.keys returns symbols

Meaning step_names.include? 'delivery' will always return false for the latter.

It would also be nice to move step_names to another private method:

def step_names
  @order ? @order.checkout_steps.map(&:to_sym) : ::Spree::Order.checkout_steps.keys
end

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It might be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2022
@stale
Copy link

stale bot commented Nov 11, 2022

Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!

@stale stale bot closed this Nov 11, 2022
@elia elia reopened this Nov 22, 2022
@elia
Copy link
Member

elia commented Nov 22, 2022

@retsef sorry that stalebot closed this, I reopened and rebased, this is a much needed fix! 🙌

Copy link
Member

@elia elia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌 Thanks!

The CI is red for a (now fixed!) issue in the Solidus v3.2 branch

@elia elia merged commit d6bd2ac into solidusio:master Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PayPal SDK JS Error: Disallowed query param: shipping_preference
3 participants