worldline

Documentation

Start developing

It's simple for SmartPOS

Here are some recommendations of best practices:

  • Read the documentation: Start by reading the WPI documentation provided by Worldline. This will give you an overview of the interface and the steps required to integrate it into your app.

  • Use a development environment: Use a development environment that supports Android development, such as Android Studio. This will provide you with the tools you need to build and test your app.

  • Use the latest version of WPI: Always use the latest version of WPI to ensure that you have access to the latest features.

  • Test on a SmartPOS device: Test your app on a SmartPOS device to ensure that it works as expected. This will help you identify any issues early in the development process.

  • Follow security best practices: To be GDPR and PCI complaint.

  • Handle errors gracefully: Ensure that your app handles errors gracefully. This includes displaying appropriate error messages to the user and logging errors for troubleshooting purposes.

  • Use a modular architecture: Consider using a modular architecture for your app, which can make it easier to maintain and update in the future.

  • Implement unit and integration testing: Implement unit and integration testing for your app to ensure that it works as expected and to catch any issues before they make it into production.

And some more for development:

  • Efficient memory usage: Efficiently manage and release resources that are no longer needed, close cursors, release bitmaps and any other resource that can cause memory leaks. In the case of SmartPOS api service, close the service connection as soon as you retrieved the information you need. Look out for minimizing network usage by implementing efficient caching techniques. 
    For discovering potential leaks in your application, you can check the Leakcanary library.

  • Error handling : Implement proper error handling and exception management to provide robust user experience. Gracefully handle exceptions to prevent app crashes and provide meaningful error message to users (efficiently log unhandled exceptions).

  • Shrink; obfuscate and optimize your release application: https://developer.android.com/build/shrink-code

  • We suggest sticking to android core app quality recommendations (exclude Google Play): https://developer.android.com/docs/quality-guidelines/core-app-quality

By following these best practices, you can ensure a successful integration of WPI into your Android app for SmartPOS devices.

The following things are not allowed:

  1. WebView at all including PWA

  2. Screens with dynamic loaded text from any external resource in combination with a input field

Detailed information: