Payment Execution Controls and Idempotent Actions
Payment execution controls are the checks that run around each payment action, from the request to the final stored result. A payment action asks a provider to authorize, capture, refund or void a payment, or to run a provider follow-up. Each request in DaletPay passes the same controls, so an operator and a script both face exactly the same rules. Each payment request carries an idempotency key, so a retry is seen as the same action, not as new work. The goal is simple, since no action should run blind and no result should be stored without a clear label.
This page walks through payment execution controls in the order they apply. It also explains their limits, and the capability check gets its own step. A retry rule or a status label cannot make a provider do what it does not support.
Key takeaway
A payment action in DaletPay carries an idempotency key, is checked against the provider's declarations and ends with a typed status. Pending results stay pending until the provider confirms them.
Why can a single retry cost one of your customers money?
Payment systems fail in ordinary ways, and payment execution controls exist for those cases. For example, a request times out after the provider has already accepted it. Also, a user presses the button twice because the page looked stuck. Similarly, a script retries a failed call without checking whether the first call worked.
As a result, each case can produce a second action that nobody wanted. Without payment execution controls, the customer may be charged twice.
In contrast, unsupported actions cause a different problem. For instance, a team sends a refund to a provider that does not offer one. Consequently, the failure appears only after the customer has been told that money is on its way. In both cases, the request and the provider's capability were never checked together.
How does an action move through DaletPay from start to end?
Under payment execution controls, each action starts with a request that carries an idempotency key. The SDK payment endpoint uses the key the caller sends. Otherwise, it creates a key when none is sent. Thus, the key travels with the action, so a retry is recognised rather than treated as new work.
Next, the engine runs a capability check against what the provider declares. For example, dispute actions look up the provider's declared method before they call the provider. Only after that capability check is the provider called. Payment execution controls therefore stop an undeclared action before it leaves the platform.
After the provider call, the answer is mapped to a typed status. In addition, the record keeps the provider reference and the raw response for later review. As a result, every stored outcome can be traced back to its request.
The diagram shows the four steps in order. First come the request and the key, then the capability check. After that come the provider call and finally the typed status. Notably, a status that is not final stays visible until the provider confirms it.
Which of these controls can your team test on its own?
The controls are small, but each one blocks a specific mistake. Specifically, each one guards the action path. Read them as a list of checks your team can test, not as sales claims.
Together they make up payment execution controls in DaletPay.
What do we get only if the provider sends it?
Still, some payment execution controls depend on the provider itself. Indeed, a typed status can only be as complete as the provider's answer. Likewise, a webhook can only confirm what the provider sends. The webhook verification page covers the event path in depth.
Why do these controls matter to the daily work of a team?
- Retries that stay safe every time. A retried request reuses the key, so nobody guesses whether the first call landed.
- Support answers that are clear. A typed status tells the agent what happened, not only that something failed.
- Fewer gaps that stay hidden. A missing capability shows up at the check, not after the customer is told.
- Audits that follow the whole path. Each action leaves a record of the request, the check, the call and the result.
Overall, payment execution controls protect the record. Before them, fraud screening applies your risk tolerance profile, and provider risk checks stay in place.
How should you handle retries and timeouts in daily work?
Indeed, a timeout means the caller does not know the result. The provider may have accepted the action, or it may never have seen it. Therefore, the safe response is to retry with the same idempotency key, not to create a new request. The key tells the platform that the second request is the same action.
Before a safe retry, check the record first. The event verification notes explain how events update a record after a delay. Otherwise, if the record already shows a result, nothing needs to be resent. If it still shows pending, wait for the event or run a reconciliation step.
A retry loop should also have a limit, which is a core part of payment execution controls.
Repeated attempts that fail the same way point to a setup problem. A missing capability or a wrong environment is typical. Accordingly, stop after a small number of attempts. Then open the capability card to see what the provider declares.
What does each typed status mean after an action fails?
A failed status is a final answer from the provider or from the capability check. Hence, it is not a reason to repeat the action with a new key. Instead, read the provider reference and the error text on the transaction record. Then decide the next step under your payment execution controls.
Next, a requires action status asks a person to act. For example, the customer may need to confirm a payment, or the operator may need to supply a missing value. Accordingly, route that work to the right queue, and keep the record open until the action is completed.
Finally, a pending status is not a failure, since the provider has simply not confirmed the result yet. Keep the payment in the pending view. Also, do not refund or retry it until a verified event or a reconciliation step confirms the outcome.
A common case: what happens if a refund call times out?
In one common case, an operator sends a refund request, and the response times out. Each step is logged in the workspace. It follows the order of the steps.
First, the operator checks the transaction. Notably, the record shows a pending refund with the same idempotency key as the original request. So the operator waits for the provider event rather than sending a second refund. When the event arrives, the typed status changes to refunded, and the audit record shows the change.
However, if no event arrives, the reconciliation view flags the refund as unmatched. Payment execution controls then hand the case to finance. Then the finance team compares the expected refund with the provider's report. The reconciliation reports page explains how that comparison works in the workspace.
What do these payment execution controls not cover for you?
Payment execution controls protect the path from request to record. However, they do not decide whether an action should happen at all. That choice belongs to fraud screening and your policy, while provider risk checks stay with the provider. The terms of your provider contract stay outside the platform too.
Moreover, the controls cannot fix a provider that answers wrongly. If a provider reports success for an action it did not run, the platform records what was said. In that case, reconciliation and the provider's own statements reveal the mismatch. Plan for it in your monthly close.
Which checks should you finish before a first live action?
Before the first live action, confirm that every connection shows the right environment for payment execution controls. A live action on a sandbox connection is the most common mistake that can be avoided. So check the label on each connection first. Then run one action with no financial effect, if the provider offers one.
Next, test the idempotency key behaviour. Send the same request twice with the same key, and confirm that the second response points to the first action. Then send a changed body with the same key, and confirm that it is refused. Both tests take minutes, and they show payment execution controls working on your provider.
Finally, map each typed status to your own process. A succeeded status may close an order in your system, while a pending status keeps it open. Also, write the mapping down and review it with support, since a clear mapping prevents most follow-up tickets.
The security controls page lists the access checks to finish at the same time. In short, payment execution controls and access checks should be signed off together.
What should you do when a control blocks a payment action?
In fact, a blocked action is an answer, not a platform failure, and payment execution controls are doing their job. Check the capability check result first, because a missing declaration explains most blocks. Then check the operator's role, since a role without the capability stops the action before the provider is called. Record the block in the case notes, and agree with the owner on any change.
Do not work around a block by sending the request through another route. Otherwise, the workaround hides the control that the team needs to see in the audit trail. If the block seems wrong, raise it with the owner of the provider card. Meanwhile, keep the action on hold until the answer arrives.
Test the controls in a sandbox first, before any live use.
Run a small set of actions in a sandbox before you rely on payment execution controls. Send a duplicate request with the same key, and try an action the provider does not declare. Then confirm that each typed status matches what the provider shows. The implementation plan includes this test as one of its exit criteria for payment execution controls.
How does one DaletPay payment action run, step by step?
An undeclared action stops at the check step, and a retried request with the same key never charges twice.
- Choose Pick the action and the provider.
- Check Compare the action with the declared capability.
- Execute Send it once with an idempotency key.
- Result Read a typed outcome: succeeded, pending, refused or failed.
- Record Store the transaction and its audit record.
- Share Write the payment fact to the DaletMart outbox in the same transaction.
Questions and answers on this topic from the product team
What is an idempotency key in a payment action?
An idempotency key is a value that names one intended action, so a resend with the same key counts as a retry. The SDK payment endpoint uses the key you send, or creates one when none is sent. The key lowers the risk of a duplicate charge after a timeout.
What happens when a provider does not support an action?
The dispute actions check the provider's declared method before they call the provider, and an undeclared method returns an error. Other actions depend on the adapter's declarations, which the capability card shows. Check the card before you design a flow around an action.
What do the typed statuses mean?
Succeeded means the provider accepted the action, pending means it has not yet confirmed and failed means it declined or errored. Requires action means the customer or operator must act first. Authorized, captured, voided and refunded describe the stage a payment has reached.
Why does a pending result stay pending?
A pending result is a fact about the provider's state, not a guess. DaletPay keeps the label until a verified event or a reconciliation step confirms the outcome. Replacing it early would hide an unconfirmed payment.
How does a reused idempotency key behave on dispute actions?
The dispute actions compare the key with the request body, and a different body under the same key returns a conflict. If the body and the header carry different keys, the request is also rejected. These checks stop two different changes from running under one key.
See how DaletPay fits the providers your team uses today
Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.