Integration Guide for myPOS Mobile Checkout (Android SDK)
The myPOS Mobile Checkout Android SDK enables seamless in-app payment processing. A "by appointment" test service is available to validate SDK calls. If you’d like to use it, please request access and coordinate with a myPOS engineer for monitoring during your testing session.
Installation
To install the SDK, follow these simple steps:
- Add Maven Central to your Gradle repositories:
allprojects {
repositories {
mavenCentral()
}
}
- Add the SDK dependency:
implementation 'com.mypos:mobilepaymentssdk:1.2.8'
Initialization
Before you start processing payments, you need to initialize the SDK. Get the following from your myPOS Dashboard:
- Your account number
- A **Checkout (store) **that will accept payments
- The store ID
- The currency your store uses
You’ll use these values to configure the SDK in your app’s main
Activity.
Need help finding these values? Check out our Store Management Guide.
Easy Setup (Production Only)
The easiest way to integrate is by using the Configuration Pack generated during Checkout integration. This is only available for Production mode. For testing, see the Advanced Setup section below.
MyPos myPos = MyPos.getInstance();
myPos.init("eyJzaWQiOi...IjoiMyJ9", "EUR", isSandbox);
myPos.setLanguage("EN");
Advanced Setup (Recommended for Testing & Customization)
Use this method if you're testing in sandbox mode or need fine-grained control over your configuration.
protected void onCreate(Bundle savedInstanceState) {
...
MyPos myPos = MyPos.getInstance();
myPos.init(
“51528”, /*sid*/
“40064699727”, /*wallet number*/
“EUR”, /*currency ISO code*/
“MIICXAIBAAKBg ...”, /*client private key*/
”MIIBkDCB+q ...”, /*server public key*/
true, /*is Sandbox*/
);
myPos.setKeyIndex(1);
myPos.setLanguage(“EN”);
...
}
Additional Configuration Options
The SDK also supports extra security and customization:
Supported Card Networks
Define which card types your app accepts. Default includes:
- Visa
- Visa Electron
- MasterCard
- Maestro
- VPay
Address Verification Service (AVS) Capture the customer’s country and postcode as an extra security layer.