WPI Codelabs
Practical, hands-on tutorials to help you implement the Worldline Payment Interface in your SmartPOS applications. Each codelab provides step-by-step guidelines on how to develop new features using WPI.
Available Codelabs
Duration: ~31 minutes
Learn the fundamentals of WPI integration by building your first payment application. This codelab covers:
- Setting up the Android project
- Understanding WPI request/response structure
- Implementing a basic sale transaction
- Handling payment responses
Duration: ~31 minutes
Learn how to query the payment solution for configuration and capabilities using the WPI background service. This codelab covers:
- Using Android Messenger Service for background operations
- Binding to the WPI information service
- Retrieving terminal configuration
- Parsing payment solution capabilities
Duration: ~39 minutes
Implement robust retry mechanisms for your WPI integration. This codelab covers:
- Exponential backoff retry strategies
- ViewModel-based UI state management
- Service disconnection handling
- User feedback during retries
Getting Started
Ensure you have Android Studio installed and configured for SmartPOS development. - Android Studio Narwhal Feature Drop or later - SDK 36 or higher - Gradle 8.14.3 or higher
Request a test terminal from your Worldline Partner Manager.
Ensure you have a payment application running on your device before starting the codelabs.
Prerequisites
Before starting any codelab, ensure you have:
- Android Studio - Latest version recommended
- SmartPOS Device or Emulator - For testing your applications
- Payment Application - Running on your test device
- Basic Kotlin Knowledge - Familiarity with Android development
Code Samples
Each codelab provides downloadable starter code and finished solutions:
Download the WPI Financial codelab starter and finished code (ZIP)
Download the WPI Payment Information codelab starter and finished code (ZIP)
Download the WPI Retry Logic codelab starter and finished code (ZIP)
Related Documentation
Complete WPI 2.0 API reference
Latest WPI 2.1 features and updates
SmartPOS SDK for advanced features
Test your WPI integration