PaystackHQ / paystack-android

Paystack SDK for Android. Accept payments on Android
Apache License 2.0
126 stars 102 forks source link

How to Tokenize a card #70

Closed Asendo316 closed 5 years ago

Asendo316 commented 5 years ago

I have tried this ` PaystackSdk.createToken(card, new Paystack.TokenCallback() { @Override public void onCreate(Token token) { if(token != null) { //TODO dismiss progress

                  //send the token to your server for charging
              }
          }

          @Override
          public void onError(Exception error) {
              //dismiss progress, show error to the user
          }
      });
  }`

But createToken no longer exists in the SDK

ibrahimlawal commented 5 years ago

Yes it has been discontinued. Please use chargeCard as documented.