I want to integrate stripe in android and test the code with publishable key. I want to create token after successful transaction with the card params any suggested code.
Charge Class is not included in the old stripe sdk I solved it my by just downloaded the latest stripe and gson jars file from Download gson-2.2.2.jar : gson « g « Jar File Download and put it under lib folder in my project directry and add compile fileTree(dir: 'libs', include: ['*.jar'])
to build.gradle and remove the old stripe module from my projcet and now it work fine My gradle file is
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
testCompile 'junit:junit:4.12'
compile 'com.stripe:stripe-android:2.0.2'
compile 'com.google.android.gms:play-services-appindexing:8.4.0'
}
now you can use charge class of the stripe