>
> That is, add a simulate option to the request that describes what to
> simulate. The above code would run against the same production
> server configured in shipping devices (and Firefox OS Simulator).
> When the server sees the simulate option it would never process any
> payment, it would simply say "Click this button to continue the
> simulation". In this case, that button would do a real postback to
> the app developer's server as if a real payment went through
> successfully. The developer could then test their product delivery
> mechanism without sending a real payment through. Since postbacks
> receive a copy of the original JWT then the dev could detect if it
> were a test via the simulate option.
>
Perhaps this should have a button for each success and error condition as well
as a chargeback button.
Buttons:
* Simulate Success
* Simulate Fail (App Unavailable)
* Simulate Fail (Purchase cancelled)
* ...
* Simulate Chargeback
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps