Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

package com.codename1.payment.terminal

In-person card payments: card terminals behind one interface.

A PaymentTerminal takes a TerminalPaymentRequest and answers with a TerminalResult. Three kinds ship with Codename One:

  • com.codename1.payment.terminal.tap – the phone itself is the reader (Tap to Pay on iPhone and Android), over the Stripe Terminal SDK.
  • com.codename1.payment.terminal.stripe – a Stripe smart reader on the counter, driven over Stripe’s API.
  • com.codename1.payment.terminal.adyen – an Adyen terminal, through Adyen’s cloud Terminal API.

The two network terminals are plain HTTPS, so they work on every platform, desktop included, and add nothing to a build. Only the tap package brings a native SDK, and only into apps that reference it.

In-app purchases and Apple Pay / Google Pay checkout are a different thing, in com.codename1.payment.

Types

class CardReceiptWhat a card receipt has to show, as the terminal reported it.
class HttpTerminalTransportThe default TerminalTransport, over ConnectionRequest.
class PaymentTerminalA card terminal: takes in-person payments and, where the terminal supports it, everything a point of sale does around them – refunds, reversals, pre-authorizations and their capture, lookups after a lost connection, and the end-of-day reconciliation.
enum TerminalOperationThe operations a PaymentTerminal can perform, as reported by PaymentTerminal.supports(TerminalOperation).
class TerminalOutcomeUnknownExceptionThe terminal may or may not have charged the card, and could not say which.
class TerminalPaymentRequestWhat a PaymentTerminal should charge.
class TerminalReconciliationThe outcome of PaymentTerminal.reconcile(): the terminal closed its batch and sent it to the acquirer for settlement.
class TerminalRefundRequestWhat a PaymentTerminal.refund(TerminalRefundRequest) should return.
class TerminalResultThe outcome of one operation on a PaymentTerminal: a sale, a pre-authorization, a capture, a reversal, a refund or a lookup.
interface TerminalTransportHow a network terminal reaches its provider: one HTTP exchange.