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

131
Visualizações
Hyperpay - COPYandPAY api

I have a problem with configured "COPYandPAY API".

When user click button "Pay now" I would like to do some action and if result of that action will be "true" then submit payment form. Otherwise not allow submit.

I checked documentation and found I can use function "onBeforeSubmitCard()", but documentation says this function "Overrides the internal submit function." I tried use "this.submit();" but then I get error from "hyperpay": "Payment Failed: invalid or missing parameter". If function return "true" then nothing happens.

So how can I submit form when use function "onBeforeSubmitCard"?

onBeforeSubmitCard: function (e) {
    $.ajax({
        url: route('home.cart.check'),
        type: 'get',
        success: function success(response) {
            this.submit();
        },
        error: function error(result) {
            toastr.error(result.message);
            return false;
        }
    });
}
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