2 - Process
2.1 - General
When a payment or refund is made, the transaction is put in a batch belonging to a POS terminal.
Every POS terminal is associated with a contract number that is in turn associated with a particular merchant.
A batch is automatically closed once a day and processed.
The operation UPPGJOR (SETTLEMENT) can also be called to close a batch at an earlier time.
Info
A transaction cannot be cancelled after a batch has been closed – a refund must be made instead.
Batches are closed at the time entered when registering the POS terminal. If no particular time was specified, the closing time is registered as 21:00.
Cancellations and refunds can be made without having card numbers for those who do not store card numbers in their databases – use the operations OGILDAFAERSLU (CANCELTRANSACTION) and ENDURGREIDAFAERSLU (REFUNDTRANSACTION).
More information on operations can be found in the Operations chapter
2.2 - Timeout
When payment is made then the credit card's issuer is contacted to see if the payment is authorized. Issuers have different response times and can be up to 30 seconds.
When calling the Valitor Payment Service it is important to wait for a response for at least 60 seconds.
Attention
Average response time under normal circumstances is 1-2 seconds. If the timeout is not long enough then there is a chance that the connection is closed even though the issuer authorizes the payment.