Get Smart App2App Overview
Welcome to the Get Smart App2App integration for Android. This integration allows your application to send payment requests directly to the Get Smart payment module and receive transaction results programmatically, without the need to implement complex payment processing logic.
What is App2App?
The App2App solution defines a connection method between the generic Get Smart Android application and an external third-party application. This integration enables your application to process secure card payments by leveraging the certified Get Smart payment infrastructure already installed on the device.
How It Works
Intent mechanisms to facilitate communication between two distinct applications installed on the same device:- Your external app initiates the payment process and receives results
- The Get Smart app handles the secure transaction processing
Intent, launches it using startActivityForResult, and receives the transaction result back through the standard onActivityResult callback.Key Concepts
Understanding these core concepts will help you implement the App2App integration effectively and troubleshoot issues when they arise.
Android Intents
Intent system for inter-application communication. An Intent is a messaging object you can use to request an action from another app component. In this case, you'll use a specifically named Intent (es.android.redsys.mPOS.movil.tpvAndroid_PAYMENT_REQUEST) to communicate with the Get Smart application.Transaction Types
The App2App integration supports two primary transaction types:
- Sale (Venta) - A standard purchase transaction
- Refund (Devolución) - A return or refund of a previous transaction
Receipt Printing
The Get Smart financial application remains responsible for printing the merchant receipt (if applicable) and offering the option to print the customer receipt. Your application does not need to handle print logic.
Benefits
The App2App integration offers several advantages:
- Simplified Integration - You do not need to implement low-level EMV or contactless payment logic
- Certification Savings - By offloading the payment processing to the certified Get Smart application, you avoid the costs associated with certifying your own payment solution
- Minimal Configuration - The integration does not require specific permissions in your application's
AndroidManifest.xmlfile
Next Steps
Now that you understand the basics of the App2App integration:
- Learn about the specific requirements in Prerequisites and Configuration
- Follow the step-by-step tutorial in Quick Start: Your First Transaction
- Explore the technical details in Architecture