~singpolyma/sgx-jmp

ref: aa3117a59797562156d6a502c0fb4e310cef8367 sgx-jmp/test/test_transaction.rb -rw-r--r-- 2.8 KiB
Customer always has a JID
Merge branch 'credit-card-bonus'

* credit-card-bonus:
  Insert bonus when paying by credit card
Insert bonus when paying by credit card
Add missing require

To allow these modules to be used in isolation (especially when
testing).
Refactor BuyAccountCreditForm

add_to_form no longer needs a promise or a network call, instead we use
a factory to get that data up front and inject the dependency.

New BuyAccountCreditForm#parse to get the relevant data back out of an
XMPP form.

Some changes to Transaction and sgx_jmp.rb to use the new method
semantics.
Merge branch 'new-signup-credit-card-decline'

* new-signup-credit-card-decline:
  Block repeated declines for 24 hours
  Handle credit card decline
Block repeated declines for 24 hours
Split logic out into testable objects

Rubocop clean. Good test coverage of helper objects.