Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

Major changes and clean up #66

Merged
merged 17 commits into from
Jul 20, 2012
Merged

Major changes and clean up #66

merged 17 commits into from
Jul 20, 2012

Conversation

sbounmy
Copy link

@sbounmy sbounmy commented Jun 2, 2012

My branch name is called 'custom' because my first intention was to make spree_store_credits compatible with spree_paypal_express, but I end up fixing a lot of features and though it would be great if this get merged into spree's repo:

The spec coverage is not as good as it should be, but I tried to add some spec and setup integrations test if anyone wants to help with.
This PR is actually tested with preferred_review set to true and deployed on production, but would love any feedback.

@@ -145,8 +147,15 @@ def paypal_finish
Rails.logger.error ppx_auth_response.to_yaml
end

@order.update_attribute(:state, "complete")
Copy link
Author

Choose a reason for hiding this comment

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

@radar any idea why we are not using @order.complete! to preserve order's state callbacks ?

Copy link

Choose a reason for hiding this comment

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

There are some state events triggered when this method is called, and those fail. Therefore we set this manually.

@BDQ BDQ merged commit 7417b80 into spree-contrib:master Jul 20, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Promotions don't go through to paypal Capturing payment through spree admin fails (works on paypal)
3 participants