-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Allow services to signal that API execution has failed, which should free up the payment token and allow it to be used for another API call.
-
If the
X-Chargeresponse header is set toyes, consider the request a success and mark the payment token as spent. If theX-Chargeheader is set to any other value (normallyno), consider the request a failure and mark the payment token as usable. -
If the
X-Chargeresponse header is not specified,-
If the
--explicit-chargeconfig option is set, consider the request a failure. -
If the
--explicit-chargeconfig option is not set, consider the request a success if the status code is2xxor3xx, otherwise consider it a failure.
-
Freeing up the payment token means removing it from the spent table, which means we should log the execution error to a separate (new) table.