---
updatedAt: 2026-03-24T12:18:26.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Manual entry payments

[block:html]
{
  "html": "<meta name=\"description\" content=\"Learn how your app can make manual entry payments.\">\n\n<!--DS-5851-->"
}
[/block]

[block:html]
{
  "html": "<div class=\"container-top\">\n  <!--United States-->\n  <div class=\"container-reg\">\n    <div class=\"pill-reg\">\n      <div class=\"label-reg\">United States</div>\n    </div>\n  </div>\n\n</div>\n<!-- CSS moved to global stylesheet-->\n<!--REMOVE\n<style>\n.container-top {\n  top: -15px;\n  position: relative;\n  margin-bottom: -5px;\n}\n\n.container-reg {\n  align-items: center;\n  min-width: auto; \n  width: fit-content;\n  text-align: left;\n  overflow: auto;\n  display: inline-block; \n}\n\n/*Pill format REG*/\n.pill-reg {\n  background: #44BB44;\n  border: .5px solid #44BB44;\n  margin-left: 5px;\n  overflow: auto;\n  display: flex; \n  justify-content: center; \n  align-items: center; \n  border-radius: 10px;\n  height: 1.8rem;\n  margin-top: 10px;\n  margin-bottom: 1.5px; \n  padding: 0 10px; \n}\n\n/*Text FORMAT inside REG pills */\n.pill-reg .label-reg, \n.pill-reg__addon .label-reg \n{\n  font-style: normal;\n  font-weight: normal;\n  font-size: 12px;\n  color: #fff;\n  vertical-align: middle;\n  margin: 0;\n  padding: 0 5px;\n}\n</style>-->"
}
[/block]

For manual entry payments, your app provides required information about the payment and customer, including credit card details collected by a form in your app. The manual entry method encrypts sensitive cardholder data and routes the request and response to and from the Clover server. The `PayResponse` object is returned. The card reader is not used, and does not need to be connected for this type of transaction.

> 📘 IMPORTANT
>
> In this payment method, the credit card information is manually entered in plain-text format. Due to this your app is not certified as Point to Point Encryption (P2PE)-compliant, even though the card data is encrypted as quickly as possible after it is entered.

For more information, see [Supported payment methods](https://docs.clover.com/docs/clover-go-sdk#supported-payment-transactions).

# Prerequisites

Before you integrate with the Go SDK, complete the following:

* [Create a global developer account](https://docs.clover.com/docs/gdp-create-global-developer-account) with a default test merchant account.
* Create [additional test merchants](https://docs.clover.com/docs/use-test-merchants-dashboard#create-additional-test-merchants), if needed.
* [Create an app](https://docs.clover.com/docs/creating-an-app) in the sandbox.
* Create at least one [employee](https://docs.clover.com/docs/clover-data-model#employees) role user for the [OAuth flow](https://docs.clover.com/docs/clover-oauth-on-mobile).
* Order a [Clover Go reader Developer Kit (Dev Kit)](https://cloverdevkit.com/) and [set it up](https://docs.clover.com/docs/clover-dev-kits#set-up-devices-and-dev-kits).

<br />

# Field descriptions

## PayRequest fields

[block:parameters]
{
  "data": {
    "h-0": "Object",
    "h-1": "Type",
    "h-2": "Description",
    "h-3": "Required/ Optional",
    "0-0": "keyedInCard",
    "0-1": "keyedInCard",
    "0-2": "Required for a manual card entry. See [KeyedInCard ](https://docs.clover.com/docs/manual-entry-payments#keyedincard)for further details.",
    "0-3": "Optional",
    "1-0": "amount",
    "1-1": "int64; boolean",
    "1-2": "Total amount payment in cents, including taxes.  \nFormat: Cents; Cannot be a negative value.  \nMaximum amount = 999999999",
    "1-3": "Required",
    "2-0": "final",
    "2-1": "Boolean",
    "2-2": "Indicates how the payment is processed.  \nValues:  \n  \n- **True**—Payment is processed as closed/settled and cannot be tip-adjusted or captured later. The `capture` flag also needs to be **true**. If a tip is not provided, then calculate the tip as zero (0).\n- **False**—Payment is processed as Auth/PreAuth and needs to be closed.  \n  See [Closeout](https://docs.clover.com/docs/closeout#) for more information.",
    "2-3": "Required",
    "3-0": "capture",
    "3-1": "Boolean",
    "3-2": "Indicates how the payment is captured.  \nValues:  \n  \n- **True**—Set for final sale or a payment that is ready to be captured but can be tip-adjusted later. When true, the payment is automatically and immediately captured, but it is adjustable until closeout runs; at that time it is closed or settled.\n\n- **False**—Set for an open sale where the payment needs to be captured later. When false, in the case of PreAuth, the payment is not automatically captured, and a subsequent call to capture is required.A captured payment is  closed/settled once closeout runs.Length: Maximum 32 characters",
    "3-3": "Required",
    "4-0": "externalPaymentId",
    "4-1": "String",
    "4-2": "Identifier (id) that the merchant keeps as a payment reference. This is useful to reference multiple payments in an order.  \n  \nLength: Maximum 32 characters",
    "4-3": "Optional",
    "5-0": "externalReferenceId",
    "5-1": "String",
    "5-2": "Also referred as Invoice Number.  \n  \nIdentifier (id)  that is passed to the merchant's gateway and displayed in settlement records.  \n  \nLength: Maximum 12 characters",
    "5-3": "Optional",
    "6-0": "taxAmount",
    "6-1": "int64; boolean",
    "6-2": "Tax amount in cents. Included in the total amount but can also be set to display in transaction records and receipts.  \n  \nFormat: Cents; cannot be a negative value  \n  \nLength: Maximum 999999999",
    "6-3": "Optional",
    "7-0": "tipAmount",
    "7-1": "int64; boolean",
    "7-2": "Tip amount in cents including taxes.  \n  \nFormat: Cents; cannot be a negative value  \n  \nLength: Maximum 999999999  \n  \n- If the final flag is **false**, this value is always null/nil (not zero (0))\n- If the final flag is **true**—that is, payment type is Sale—and `tipAmount` is null/nil, then it is calculated as zero (0).",
    "7-3": "Optional"
  },
  "cols": 4,
  "rows": 8,
  "align": [
    "left",
    "left",
    "left",
    "left"
  ]
}
[/block]

## KeyedInCard

[block:parameters]
{
  "data": {
    "h-0": "Object",
    "h-1": "Type",
    "h-2": "Description",
    "h-3": "Required/ Optional ",
    "0-0": "cardNumberEncrypted",
    "0-1": "String",
    "0-2": "Encrypted primary account number (PAN). Encrypted through initializer on iOS; while Android takes unencrypted (as of now) and encrypts it in SDK before sending the request.",
    "0-3": "Required",
    "1-0": "first6",
    "1-1": "String",
    "1-2": "First 6 digits of the card number.",
    "1-3": "Required",
    "2-0": "last4",
    "2-1": "String",
    "2-2": "Last 4 digits of the card number.",
    "2-3": "Required",
    "3-0": "isCardPresent",
    "3-1": "Boolean",
    "3-2": "Indicates if card is present.  \nValues:  \n  \n- **True**—Card is present\n- **False**—Card not present (CNP)",
    "3-3": "Required",
    "4-0": "billingAddress",
    "4-1": "String",
    "4-2": "Billing address (Billing Street and number) registered with the card provider.",
    "4-3": "Optional",
    "5-0": "billing Zip",
    "5-1": "String",
    "5-2": "Billing postal code (ZIP) registered with the card provider.",
    "5-3": "Optional",
    "6-0": "cardType",
    "6-1": "Enum: CardType",
    "6-2": "Card type used. A wrong cardType may not necessarily fail the transaction. Use Unknown card type if card type is not listed.",
    "6-3": "Required",
    "7-0": "expiration",
    "7-1": "CardExpirationDate",
    "7-2": "Card expiration month (first 2 digits) and year (last 2 digits). Format: mmyy Length: 4 digits",
    "7-3": "Required",
    "8-0": "cvv",
    "8-1": "String",
    "8-2": "Card verification value (CVV) of the card.",
    "8-3": "Required"
  },
  "cols": 4,
  "rows": 9,
  "align": [
    "left",
    "left",
    "left",
    "left"
  ]
}
[/block]

## PayResponse fields

[block:parameters]
{
  "data": {
    "h-0": "Object",
    "h-1": "Type",
    "h-2": "Description",
    "0-0": "payment",
    "0-1": "Payment",
    "0-2": "Payment details autopopulate on successful payment.",
    "1-0": "Issues",
    "1-1": "Array of PaymentIssueEnum",
    "1-2": "Originally payment challenges were displayed. Now the payment proceeds if there is a payment challenge and issues are filled in for a successful payment.  \n  \n**Note:** Integrator(s) decide how they want to proceed in the case of issues. For example, if the issue is SIGNATURE_REQUIRED, the integrator may need to implement a signature capture interface and save it with transaction info.  If the issue is DUPLICATE_PAYMENT or PARTIAL_PAYMENT, the integrator may make a call to void the payment."
  },
  "cols": 3,
  "rows": 2,
  "align": [
    "left",
    "left",
    "left"
  ]
}
[/block]

## PaymentIssueEnum

If a payment issue occurs, the payment still processes. Merchants can request a [`ReversePayment`](https://docs.clover.com/docs/payment-reversal#) to void a payment if they have an issue such as a SignatureChallenge where signatures don't match. If a partial payment occurs, merchants can perform another transaction to collect the remaining amount.

[block:parameters]
{
  "data": {
    "h-0": "Object",
    "h-1": "Description",
    "0-0": "Duplicate_Payment",
    "0-1": "Duplicate payment.",
    "1-0": "Offline_Payment",
    "1-1": "Offline payment.  \n  \n**Note:** Offline payments are not supported with this version of Clover Go SDK. Integrators won't receive this enum.",
    "2-0": "Partial_Payment",
    "2-1": "Card allowed only partial payment of the full amount requested.",
    "3-0": "Signature_Required",
    "3-1": "Signature is required for the transaction.",
    "4-0": "AVS_Mismatch",
    "4-1": "Address Verification Service (AVS) mismatch.",
    "5-0": "CVV_Mismatch",
    "5-1": "Card verification value (CVV) mismatch."
  },
  "cols": 2,
  "rows": 6,
  "align": [
    "left",
    "left"
  ]
}
[/block]

> 📘 IMPORTANT
>
> Review the resulting payment object amount field to verify that the full amount requested was authorized. In some scenarios, only a partial amount may be authorized, and your app needs to issue further PayRequest instances to reach the full amount or reverse the transaction.

## CloverError

CloverError can be any of the following:

| Error type                  | Description                                                                    |
| :-------------------------- | :----------------------------------------------------------------------------- |
| CloverCardError             | Transaction failed because of card error—for example,  card expired.           |
| CloverMerchantBoardingError | Merchant status returns a declined or pending status from the server.          |
| CloverNetworkError          | Standard HTTP errors that are captured during communications with our servers. |
| CloverReaderError           | Errors encountered while communicating with the Card Reader.                   |
| CloverTransactionError      | Errors encountered while processing a transaction                              |
| CloverGenericError          | Any error that doesn't fall into the error categories above.                   |

# Android manual entry payment steps

To create a manual entry payment:

1. Send a `PayRequest`.
2. Note the `ChargeCardReaderState`.

A successful request returns `OnPaymentComplete` with the `PayResponse`.  An error such as a timeout returns `OnPaymentError`. Instead of PaymentChallenge being displayed, the payment proceeds further and the issues enum array contains any issues received through the process.

## Request details

Send a `PayRequest` with `KeyedInCard` details.

## Response details

### ChargeCardReaderState

| Field             | Description                                                                                  |
| :---------------- | :------------------------------------------------------------------------------------------- |
| OnPaymentComplete | Indicates a successful payment. Review the `PayResponse` for the successful payment details. |
| OnPaymentError    | Indicates an error occurred and payment is voided.                                           |

## PayRequest example

```javascript Payment request
fun chargeCardReader(charge: PayRequest): Flow<ChargeCardReaderState>
```

For a KeyedInCard PayRequest, the card reader does not need not to be connected.

For a non-manual (without KeyedInCard) PayRequest, see [Card present payments](https://docs.clover.com/docs/card-present-payments).

```java Java PayRequest example
KeyedInCard keyedInCard = new KeyedInCard(
                "123456789012345",
                "123456",
                "1234",
                false,
                CardType.UNKNOWN, //The CardType class contains the available options
                "1234",
                "1234",
                "Clover Go St",
                "12345"
        );
 
PayRequest request = new PayRequest(
                amount,
                capture,
                isFinal,
                externalPaymentID,
                externalreferenceID,
                taxAmount,
                tipAmount,
                keyedInCard
        );
 
goSdk.chargeCardReader(
        activity,
        request,
        new GoSdkCallback<ChargeCardReaderState>() {
            @Override
            public void onNext(ChargeCardReaderState cardReaderState) {
                if (chargeCardReaderState instanceof ChargeCardReaderState.OnReaderPaymentProgress) {
                    Log.d(TAG, "Payment in progress");
                    updateUI(cardReaderState);
                } else if (chargeCardReaderState instanceof ChargeCardReaderState.OnPaymentComplete) {
                    Log.d(TAG, "Payment successful");
                    updateUI(cardReaderState);
                } else if (chargeCardReaderState instanceof ChargeCardReaderState.OnPaymentError) {
                    Log.d(TAG, "Payment failed");
                    updateUI(cardReaderState);
                } else {
                    //Something unexpected happened
                }
            }
 
            @Override
            public void onError(@NonNull Throwable e) {
                //handle error scenario
            }
        }
);
```
```kotlin Kotlin PayRequest example
lifecycleScope.launch {
    /*
    Capture State
 
    Final/Sale - true
    Tippable/Auth - true
    Pre-Auth - false
    */
 
    val keyedInCard = KeyedInCard(
        cardNumberEncrypted = "123456789012345",
        first6 = "123456",
        last4 = "1234",
        isCardPresent = false,
        cardType = CardType.UNKNOWN, //The CardType class contains the available options
        expiration = "1234",
        cvv = "1234",
        billingAddress = "Clover Go St",
        billingZip = "12345"
    )
 
    val request = PayRequest(
        final = final,
        capture = capture,
        amount = amount, //Please note that amount is not nullable, unlike taxAmount and tipAmount
        taxAmount = taxAmount,
        tipAmount = tipAmount,
        externalPaymentId = externalID,
        keyedInCard = keyedInCard
    )
 
    goSdk.chargeCardReader(
        request
    ).collectLatest { cardReaderState ->
        when (cardReaderState) {
            is ChargeCardReaderState.OnPaymentComplete -> {
                println("Payment successful")
                updateUI(cardReaderState)
            }
            is ChargeCardReaderState.OnPaymentError -> {
                println("Payment failed")
                updateUI(cardReaderState)
            }
            is ChargeCardReaderState.OnReaderPaymentProgress -> {
                println("Payment in progress")
                updateUI(cardReaderState)
            }
            else -> {
                //Something unexpected happened
            }
        }
    }
}
```

# iOS

To take a payment using a card reader:

1. Create a `PayRequest` object.
2. Pass it to the `CloverPaymentSDK.charge(` function.
3. Include a `KeyedInCard` object as part of the `payRequest`, with the input about the payment and customer, including credit card details coming from a form in your app.

If the transaction succeeds, a `.complete paymentEvent` is called with the associated payment and the async stream closes. If the transaction fails, an error displays and the async stream closes. During transaction processing, `.progress paymentEvents` is called to provide status and instructions to the customer.

```swift Swift payRequest example
let keyedInCard = KeyedInCard(cardNumber: pan, expDate: expDate, cvv: cvv) //values manually input from your form
let payRequest = PayRequest(amount: 1000, taxAmount: 80, tipAmount: 200)
payRequest.keyedInCard = keyedInCard    
 
do {
   for try await paymentEvent in CloverPaymentSDK.shared.charge(payRequest: payRequest) {
      switch paymentEvent {
      case .complete(let payResponse):
         print("Payment complete")
         if payResponse.issues.contains(.duplicatePayment) {
            print("This payment is a possible duplicate")
         }
      case .progress(let progressEvent):
         switch event {
         case .insertOrTapCard: presentAlert(title: "Insert or Tap Card", message: nil)
         case .swipeInsertTapCard: presentAlert(title: "Swipe, Insert, or Tap Card", message: nil)
         case .removeCard: presentAlert(title: "Remove Card", message: nil)
         case .cardInserted: fallthrough
         case .cardRemoved: alert?.dismiss(animated: true)
         default: break
         }
      @unknown default: break
      }
   }
} catch {
   print("Payment Error \(error)")
}
```