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

207
Visualizações
How to display Mollie order status in the redirecturl?

The redirectURL does not seem to POST any data back. It seems to use a GET request. How do I know the payment ID or payment status on the return URL?

$payment = \mollie::api()->payments()->create([
    'amount'        => $price,
    'customerId'    => $customer->id,
    'description'   => 'My Initial Payment',
    'redirectUrl'   => \URL::to('/after-payment'),
]);
over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

The POST request Daan describes is for the webhook only. Mollie will redirect back to your website using a GET request to the redirectUrl you provide. There is no data sent back to your redirectUrl, however you could add your payment/invoice id to the GET parameters in the redirectUrl:

$payment = \mollie::api()->payments()->create([
    'amount'        => $price,
    'customerId'    => $customer->id,
    'description'   => 'My Initial Payment',
    'redirectUrl'   => \URL::to('/after-payment').'?invoice_id='.$invoice->id,
]);
over 4 years ago · Santiago Trujillo Relatório

0

Edit: as pointed out in the comments, I was talking about the webhook URL. Mark’s answer is the correct one, as he’s describing the redirect URL.

As stated in Mollie's docs, a POST request is sent with one parameter id=tr_xxxxxx. Are you sending a 301 or 302 redirection header? In that case the post data is lost and you'll receive a GET request.

Note that you can always add your own transaction identifier to the webhook URL if you need the redirection.

over 4 years ago · Santiago Trujillo Relatório
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