Posts: 32
Registered: ‎02-12-2018

Look up transaction by refid?

Is there any way to search for a transaction (via the API) when all we have is the refid that we passed to getHostedPaymentPageRequest?


(We are seeking a way to do a batch of queries on any transactions done via hosted payment pages that didn't get returned to us for some reason, e.g., the user closing the browser immediately after paying.  We know about webhooks, but we have some significant obstacles to using them, so we are hoping to find a shortcut that would allow us to search for transactions matching any refid values that we used to generate Accept Payment Pages but didn't get a transaction response from.) 

Regular Contributor
Posts: 116
Registered: ‎11-05-2018

Re: Look up transaction by refid?

[ Edited ]
I am almost 100% certain you cannot do an API call using only the refId as a parameter. Right now I’m looking to get some insurance against failed webhooks (or more accurately webhooks that the server didn’t respond to, or that the scripts on my endpoint didn’t execute correctly for.) and need something similar. I think the route to go is to use the transaction reporting API. That’s what I’m going to try. You can pull authorizes transactions data records and compare them against yours. If you have any value in the transaction response (I think the refId might be in there, or maybe you could pass something else solely for your use) then you could probably engineer some sort of function that would go through the list and identify matches based on the refid or some substitute you pass in your original API call.