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
}
});
}`
I have tried this ` PaystackSdk.createToken(card, new Paystack.TokenCallback() { @Override public void onCreate(Token token) { if(token != null) { //TODO dismiss progress
But createToken no longer exists in the SDK