Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

129
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!