Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

382
Visualizações
How does payment session timeout work in Mastercard Payment Gateway (MPGS)?

I am implementing Hosted Checkout for Mastercard Payment Gateway (MPGS). A WebView (in Android client) invokes checkout javascript.

An order is created with a specific amount and presented to the user. The user has to make the payment by authorizing a credit or debit card. Each attempt at the payment creates a transaction which is linked to that order. See glossary for explanation of these terms.

From what I gather, a Session is a placeholder which contains all the relevant details about the different stages of the payment made.

There may be network issue which may lead the client into an inconsistent state. Now, I would want to know the timeout for this particular session so that I can have a schedule job pick up orders that have exceeded the timeout and query the result of the order using Retrieve Order. This timeout should be sufficient to infer that no future transactions can be done.

The session does timeout by providing an error:

{
    "error": {
        "cause": "INVALID_REQUEST",
        "explanation": "Form Session not found or expired."
    },
    "result": "ERROR"
}

Strangely, I cannot find documentation regarding what this timeout value actually is. The timeout error is received after one hour of inactivity. If the session is being altered (I've tested by invoking Retrieve Session with intervals of 30 minutes), it seems to persist for 2 hours.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda