I'm using stripe payment integration with my android app, but when I test the card it gives invalid card message means the card is null. stripe gives these international cards in which India is not mentioned. how I test card in India.

I tried various cards including 4242 4242 4242 4242 and also others. stripe testing cards


 final Card cardToSave = mCardMultilineWidget.getCard();

 if (cardToSave == null) {
//     mErrorDialogHandler.showError("Invalid Card Data");

      Toast.makeText(getContext(),"Invalid Card Data",Toast.LENGTH_LONG).show();    
      return ;
  else {
            Toast.makeText(getContext(),"valid Card Data",Toast.LENGTH_LONG).show();   
                            new TokenCallback() {
                                public void onSuccess(Token token) {
                                    //Send token to your own web service
                                    Toast.makeText(getContext(),token +"",Toast.LENGTH_LONG).show();

                                public void onError(Exception error) {


I want that card is valid and token return by stripe.

1 Answers

Oscar Sortland Kolsrud On

Stripe`s default payment card is as said 4242 4242 4242 4242 with a not passed date as expiry and 3 random numbers as CVV. F.ex i could fill 4242 4242 4242 4242 as card number, and 09/21 as expiry and 123 as CVV.

But, What may be your problem is that Stripe is currently not publicly available in India as it is in invite only at the moment. Check https://stripe.com/global