Closed Bug 839693 Opened 11 years ago Closed 11 years ago

Simulated chargebacks should get a default reason

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-03-14

People

(Reporter: kumar, Assigned: kumar)

References

Details

(Whiteboard: p=)

If a developer sends a request like {"simulate": {"result": "chargeback"}} then it will return an error because reason is missing. In this case, webpay should fill in a default reason of "refund"
Priority: -- → P3
I.E. expand it to {"simulate": {"result": "chargeback", "reason": "refund"}}
Whiteboard: p=
Version: 1.1 → 1.2
Assignee: nobody → kumar.mcmillan
Target Milestone: --- → 2013-03-14
Instead of doing something unexpected, I decided to raise an error if the developer sends a chargeback simulation without declaring the reason.

https://github.com/mozilla/webpay/commit/7b495135b424382294cc085ff61bde3cac6d2701
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.