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

Paypal payment method #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hoverlover
Copy link

I know this PR has a commit from another outstanding PR, but this change needed to rename a file contained in that commit. Hard to explain. Sorry.

Anyway, this PR basically defines a new PaymentMethod for use with PayPal. The reason this was needed is because somewhere along the way (maybe the Spree 1.0 release?) the IPN notifications stopped working. I traced it back to the fact that order state transitions in the Spree::PaymentNotificationsController were failing. The reason was that the order's payment source was nil, but in order to process the payment Spree required a payment source. This was because Spree::PaymentSource#source_required? method is hard-coding true. This new payment method I created is basically a dummy payment method that can be used when configuring the PayPal payment method in the admin interface. It simply returns false in the source_required? method.

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

Successfully merging this pull request may close these issues.

1 participant