Refreshing pending transactions
How to refresh the status of pending transactions
Problem
You have created a transaction request — Authorization, Capture, Void, or Refund — to Checkout.com, which is still pending. You want to refresh its status to check if it gets approved.
Solution
Checkout.com transactions are asynchronous. That means that once a transaction is created, it remains pending until the Checkout.com webhook updates it. If you want to update the status of the transaction independently, send a PATCH
request to the /api/checkout_com_payments/:id
endpoint, setting the _refresh
attribute to true
.
This request will try to refresh any pending transactions and can be used as a fallback strategy in case the Checkout.com webhook isn't fired.
Example
The following request updates the Checkout.com payment source identified by the "emdEKhoOMA" ID to refresh any pending transactions:
More to read
See our documentation if you need more information on how to update a Checkout.com payment.
Last updated