Closed
Bug 834410
Opened 12 years ago
Closed 12 years ago
Support simulated success/error in JWT for developer testing of in-app payments
Categories
(Marketplace Graveyard :: Payments/Refunds, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
2013-02-07
People
(Reporter: kumar, Assigned: kumar)
References
Details
(Whiteboard: p=3)
To enable developers to test their in-app payment implementation let's adjust webpay to support the following simulations.
This JWT will open a fake webpay flow with some sort of "Continue to simulate payment" button. That button click will send a real postback to the app server.
{
...
"request" : {
"name" : "Unlock Level 10",
...
"simulate": {
"result": "postback"
},
}
}
Likewise, this JWT will simulate an error:
{
"request" : {
...
"simulate": {
"result": "chargeback",
"reason": "Insufficient funds"
},
}
}
Chargeback reasons can be left undefined for now.
For all simulations, we should display verbose errors so that developers can get as much information as possible. Before, we only showed errors if the server was configured with VERBOSE_LOGGING = True
See discussion: https://groups.google.com/d/msg/mozilla.dev.webapps/p2HeofBHGKY/yPVjhyRYojYJ
Assignee | ||
Updated•12 years ago
|
Blocks: marketplace-payments
Priority: -- → P1
Updated•12 years ago
|
Assignee: nobody → kumar.mcmillan
Target Milestone: --- → 2013-01-31
Assignee | ||
Updated•12 years ago
|
Summary: Support simulated payment success/error in JWT for developer testing → Support simulated success/error in JWT for developer testing of in-app payments
Updated•12 years ago
|
Version: 1.0 → 1.1
Updated•12 years ago
|
Whiteboard: p=3
Assignee | ||
Updated•12 years ago
|
Target Milestone: 2013-01-31 → 2013-02-07
Assignee | ||
Comment 1•12 years ago
|
||
The webpay side has landed https://github.com/mozilla/webpay/commit/9cd70aa11d45349db134cd40017956de679e33c9
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•