source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/visa/mpos.sdk.ios.pods.git' use_frameworks! target :"<your-app-target>" do pod 'payworks', '2.65.0' end
You can now implement your first transaction workflow.#import <mpos_core/mpos_extended.h>
For version 2.45.0 and above, make sure the app support Java 8 features by setting the compatibility levels:allprojects { repositories { jcenter() maven { url "https://repo.visa.com/mpos-releases/" } } }
Add the following exclusion rules to your module'sandroid{ ... compileOptions { sourceCompatibility = 1.8 targetCompatibility = 1.8 } }
Add the libraries to the dependencies section of your module'spackagingOptions { exclude 'META-INF/*' exclude 'LICENSE.txt' exclude 'asm-license.txt' }
dependencies {implementation 'io.payworks:mpos.android.core:2.95.0' // Add these three dependencies if you want to use a Miura card reader implementation 'io.payworks:mpos.java.accessories.miura:2.95.0' implementation 'io.payworks:mpos.android.comlinks.bluetooth:2.95.0:@aar' implementation 'io.payworks:mpos.java.comlinks.tcp:2.95.0' // Add these two dependencies if you want to use a Verifone card reader implementation 'io.payworks:mpos.java.accessories.vipa:2.95.0' implementation 'io.payworks:mpos.java.comlinks.tcp:2.95.0' }
<application [...] android:largeHeap="true"> [...] </application>