Closed elwin1234 closed 7 years ago
So the first one should be status pending? Is this in the docs, or can you forward me the mail?
And are you sure it's always the first that can be skipped? Could lead to problems otherwise..
Hi,
Not necessarily the first, but the one that does not contain a timestamp should not be considered as completed. I'm still in mail contact with MSP and will keep you informed here.
@elwin1234 any update on this? Can you paste the MSP conversation?
@elwin1234 ?
Hi,
I think we consider this as fixed by now.
Hallo / Hello,
Consider the class RestCompletePurchaseResponse
and the
getPaymentStatus()
function inRestFetchTransactionResponse
At this moment the payment is considered successful when the status is "completed". However, sometimes the PSP MultiSafepay sends two
notifyMerchantTrans
requests to the webshop with very little time in between. I contacted MSP about this behaviour and they told me that status updates that do not contain a timestamp should be ignored. I checked some 'double requests' and concluded that the first of the two request does not contain atimestamp
in the returning parameter bag. So in order to preserve that the webshop is starting two parallel order finishing steps because the two requests are placed so close after another is it possible to implement a timestamp check?