Request Parameters
putExtra() method. Parameter keys are case-sensitive and must match the specifications exactly.Intent Action
To initiate a transaction request, your application must create an Intent with the following action string.
| Intent Action |
|---|
es.android.redsys.mPOS.movil.tpvAndroid_PAYMENT_REQUEST |
type parameter.Request Parameters
intent.putExtra() to include these fields in your request.| Parameter | Type | Required | Description |
|---|---|---|---|
amount | double | Conditional | Transaction amount (e.g., 12.50). Required for sales and refunds. Not required for summaries. |
type | int | Yes | Operation type identifier. See Transaction Types for valid values. |
invoice | String | No | Merchant reference identifier or order number for internal tracking. |
original_order | String | Conditional | Required for refund operations. Must match the ORDER ID returned by the Get Smart from the original sale transaction. |
original_date | String | No | Date of the original transaction in DD/MM/YYYY format. Used only for refund operations to help identify the original transaction. |
Transaction Types
type parameter determines which operation the Get Smart application will process. The following values are supported:| Type Value | Operation | Description | Required Parameters |
|---|---|---|---|
1 | Sale | Processes a standard payment transaction. | amount, type |
2 | Refund | Reverses a previous sale transaction and returns funds to the customer. | amount, type, original_order |
3 | Summary | Triggers batch closure (totalización) to reconcile all transactions for the day. | type |
Sale Transactions
Sale transactions process customer payments and require the transaction amount. The Get Smart application manages the card interaction, PIN entry, and communication with the payment gateway. Upon completion, the application returns transaction details including the authorization code and order ID.
Refund Transactions
original_order value that was returned in the original sale response. The refund amount can be equal to or less than the original transaction amount, allowing for partial refunds. The original_date parameter is optional but recommended to help identify the transaction.Summary Operations
Summary operations close the daily batch of transactions for reconciliation purposes. This operation does not process individual transactions but triggers the Get Smart's totalization process. No amount or order information is required for summaries.
Parameter Validation
The Get Smart application validates all incoming parameters before processing. Common validation errors include:
- Missing required parameters (
typemust always be provided) - Invalid
typevalues (must be 1, 2, or 3) - Missing
amountfor sales or refunds - Missing
original_orderfor refund operations - Incorrect data types for parameters
Note: Always validate your parameters before launching the Intent to avoid transaction errors and provide a better user experience.
Related Resources
For implementation guidance and code examples, see:
- Response Parameters - Complete reference for transaction response data
- Create a Sigle-Step Payment - Step-by-step guide for implementing sales
- Create a Payment with Installments - Step-by-step guide for implementing sales with installments
- Refund a Payment - Step-by-step guide for implementing refunds
On this page