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

Payment gets into unknown "processing" state #104

Open
tamagokun opened this issue Oct 7, 2016 · 0 comments
Open

Payment gets into unknown "processing" state #104

tamagokun opened this issue Oct 7, 2016 · 0 comments

Comments

@tamagokun
Copy link

I need to manually process Paypal payments through an integration. This is how I am doing it

payment.settle!

Sometimes the payments transition to complete and sometimes they don't and get stuck in a processing state.

I thought that perhaps because Braintree was returning a settling response instead of a settled response that this was the cause. However that doesn't appear to be the case.

It seems like this line might be the culprit: https://github.com/spree-contrib/spree_braintree_vzero/blob/master/app/models/spree/payment/processing_decorator.rb#L41

If set_current_state is called, and the action is :settle, this method will just return the current_state passed into it, correct? Should I be doing payment.purchase! instead?

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

No branches or pull requests

1 participant