Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

128
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda