A “by appointment” test service is available which allows the validation of the myPOS Mobile Checkout Android SDK calls. Testers should ask for access to the testing service and ensure monitoring by a myPOS engineer.

 

Installation

Add the repository to your gradle dependencies:

allprojects {
    repositories {
        mavenCentral()
  }
}

 

Add the dependency to a module:

implementation 'com.mypos:checkoutsdk:1.0.9'

 

Initialization

Start using myPOS Mobile Checkout Android SDK by initializing the setup. Find your account’s unique number from the Dashboard. Choose a Checkout, which will accept the payments. Provide its store id to the SDK. Set the currency to match the store’s one and in which payments will be processed and add them to your app's main Activity class.

 

Check Store Management for more information for the following parameters.

 

Easy setup

To use this quick setup, you need to use the latest version of the myPOS iOS SDK. All the mandatory settings are contained in the Configuration pack which you generate when you integrate your Checkout.

 

When you have the pack generated, you copy and paste it in the Initialization method (example is shown below). It will work only for Production mode. If you want to do some testing first, you can use the Test data.

MyPos myPos = MyPos.getInstance();
myPos.init("eyJzaWQiOi...IjoiMyJ9", "EUR", isSandbox);
myPos.setLanguage("EN");
 

 

Advanced setup

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”);
...
}

The SDK allows further configuration by using the existing settings. These are the options:

  • Supported card networks – Allows you to determine the accepted card networks when using your app. The default value includes Visa, Visa Electron, MasterCard, Maestro and VPay.

Address Verification Service (AVS) – You will be able to capture the consumer’s country and postcode as an additional security layer.