Pagseguro - Problem when consulting Brand

Asked

Viewed 59 times

0

Hello, I am trying to use the transparent checkout of pagseguro. I have already integrated the session generation, but when consulting the flag of the card, the function success is never called, only error and complete. However, the answer never shows which error, only shows that it exists, with response.error = true.

I’m using the example documentation code, so I can’t understand what the error is in this case. Follow the function code below:

PagSeguroDirectPayment.getBrand({
  cardBin: 4111111,
  success: function (data) {
    alert(data);
  },
  error: function (response) {
    console.log(response);
  },
  complete: function (response) {
    console.log(response);
  },
});

I am developing Back-End in Django, and using Jquery 3.5.1. Is there an error in my code? Thank you.

  • have you tried looking at the API documentation or support? I think they can help quickly, because your code looks ok, maybe they lack parameters

  • Unfortunately yes, this is the example of the documentation itself, I am basing myself completely on them, but I am not succeeding. I tried to send a message directly. Thank you

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.