Skip to content

Fix payment bugs - #114

Closed
jordan-brough wants to merge 4 commits into
solidusio:masterfrom
jordan-brough:fix-payment-bugs
Closed

Fix payment bugs#114
jordan-brough wants to merge 4 commits into
solidusio:masterfrom
jordan-brough:fix-payment-bugs

Conversation

@jordan-brough

Copy link
Copy Markdown
Contributor

Copied and updated from https://github.com/bonobos/spree_store_credit_payment_method/pull/68

  • Fix stale-data bug
  • Recognize authorized store credit payments when calculating amounts

These were resulting in bogus "Unable to pay for order using store credits" errors which left users stuck in the "payment" state without being able to progress.

Also: Make some specs more reliable.

We were getting incorrect errors after running `reconcile_with_credit_card`
because some of the cached payment data on the order was out of date.
When calculating amounts with store credits.  Previously an already-auth'd store
credit payment was ignored, resulting in incorrect payment amounts.

Cherry-picked from https://github.com/bonobos/spree_store_credit_payment_method/commit/9ba4939
and modified for the updated code in solidus.
Use more accurate orders to avoid weird mismatched amounts.
@gmacdougall

Copy link
Copy Markdown
Member

馃憤

@jordan-brough

Copy link
Copy Markdown
Contributor Author

Merging since bonobos team gave a 馃憤 in the bonbos repo already.

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.

2 participants