Getnet DocsGetnet Docs

Create a Payment with Installments

This guide walks you through processing an installment payment transaction using the Get Smart application. Installment payments (Fraccionamiento) allow customers to split a large purchase into several monthly payments. This feature is subject to the customer’s card eligibility and your merchant configuration.

Requirements

Before you begin, ensure you have:

  • Merchant account with installments feature enabled - Contact Get Smart support to verify your account supports installment transactions
  • Customer with a supported credit card - Not all cards are eligible for installment plans
  • Get Smart application installed and configured on the Android device

Installment payments require specific merchant account configuration. Verify with Get Smart that your account is enabled for this feature before implementing.

Installment Payment Process

This section guides you through the process of creating and executing an installment payment transaction with the Get Smart App2App integration. Unlike standard sales, the Get Smart application will present the customer with an installment selection screen during the transaction.

Step 1: Create and Launch the Installment Intent

An installment payment transaction allows customers to split the total amount into monthly payments. You must create an Intent with transaction type 7 to initiate an installment payment. The Get Smart application handles the installment selection interface and processes the payment accordingly.

The table below lists the parameters you need to include in your installment Intent:

ParameterTypeRequiredDescription
amountdoubleYesThe total amount to charge
typeintYesSet to 7 for Installment payments (Venta Fraccionada)
invoiceStringNoOptional order number or identifier for tracking

Inform the customer that they are entering an installment plan before handing them the terminal. This ensures they are prepared to select the number of installments during the payment process.

The following code example shows how to create and launch an installment payment Intent:

// Define request code for result handling
static final int REQUEST_CODE_INSTALLMENT = 3001;

// Initialize the Intent with the Get Smart action
Intent intent = new Intent("es.android.redsys.mPOS.movil.tpvAndroid_PAYMENT_REQUEST");

// Add installment payment parameters
intent.putExtra("amount", 600.00);
intent.putExtra("type", 7); // 7 = Installments (Venta Fraccionada)
intent.putExtra("invoice", "ORDER-FRAC-123");

// Launch the Intent
try {
    startActivityForResult(intent, REQUEST_CODE_INSTALLMENT);
} catch (ActivityNotFoundException e) {
    // Handle missing Get Smart application
    new AlertDialog.Builder(this)
        .setTitle("Get Smart App Not Found")
        .setMessage("Please install and configure the Get Smart application.")
        .setPositiveButton("OK", null)
        .show();
}

Step 2: Handle Customer Selection and Transaction Result

After launching the Intent, the Get Smart application presents the customer with a selection screen to choose the number of installments based on available promotions and card eligibility. Common options include 3, 6, or 12 monthly payments, though available plans vary by card issuer and current promotions.

Once the customer selects an installment plan and completes the payment, the Get Smart application returns control to your onActivityResult method. The response includes standard payment data plus specific fields detailing the installment plan chosen by the customer. The printed receipt will automatically include the installment breakdown.

The following code example shows how to handle the installment payment result:

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    
    if (requestCode == REQUEST_CODE_INSTALLMENT) {
        if (resultCode == RESULT_OK && data != null) {
            // Transaction successful - extract response data
            String authCode = data.getStringExtra("AUTHORIZATION");
            String orderId = data.getStringExtra("ORDER");
            
            // Extract installment-specific information if available
            // Store these details in your digital records
            
            // The printed receipt will include the installment breakdown
            // Ensure your system also logs this as a fractional payment
        } else {
            // Transaction cancelled or failed
            // Handle error appropriately
        }
    }
}

The printed receipt automatically includes the complete installment breakdown. Ensure your digital records also log that this was a fractional payment for proper reconciliation and customer support.

Next Steps

Now that you have successfully processed an installment payment transaction, you can explore more features of the Get Smart App2App integration: