Mangopay / cardregistration-android-kit

MIT License
5 stars 2 forks source link

Callback never called #25

Closed Name-less closed 4 years ago

Name-less commented 6 years ago

When I try to register a card with the SDK on the sandbox environnement, the callback is never called, even with a false card number. I tried with every card registration method available, none of them works.

In your SDK, the flow is working until getTokenSuccess method which never callback the serviceCallback.

//on MangoPay.java
  private void getTokenSuccess(String response) {
 CardRegistrationInteractor.Callback serviceCallback = new CardRegistrationInteractor.Callback() {
      @Override public void onCardRegistrationSuccess(CardRegistration response) {
         //NEVER PASS HERE
        cardRegistrationSuccess(response);
      }

      @Override public void onCardRegistrationError(MangoException error) {
            //NEVER PASS HERE
          cardRegistrationError(error);
      }
    };

I will have to pass the card information to my backend even if this is not allowed, no choices ...

catacraciun commented 4 years ago

@Name-less if you have Proguard on your app, please have a look at issue #23 . This will be fixed on that ticket.

mangomaxoasis commented 4 years ago

Hey @Name-less, Feel free to contact us, I am for the moment closing this issue. Max