Cybersource fixes

Cherry-picked from MIT's branch.
Bugfix: when users encounter an error in the checkout process, we marked them as having paid. Fixed by @fbastani, I think.