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 CardReceipt | What a card receipt has to show, as the terminal reported it. |
class HttpTerminalTransport | The default TerminalTransport, over ConnectionRequest. |
class PaymentTerminal | A 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 TerminalOperation | The operations a PaymentTerminal can perform, as reported by PaymentTerminal.supports(TerminalOperation). |
class TerminalOutcomeUnknownException | The terminal may or may not have charged the card, and could not say which. |
class TerminalPaymentRequest | What a PaymentTerminal should charge. |
class TerminalReconciliation | The outcome of PaymentTerminal.reconcile(): the terminal closed its batch and sent it to the acquirer for settlement. |
class TerminalRefundRequest | What a PaymentTerminal.refund(TerminalRefundRequest) should return. |
class TerminalResult | The outcome of one operation on a PaymentTerminal: a sale, a pre-authorization, a capture, a reversal, a refund or a lookup. |
interface TerminalTransport | How a network terminal reaches its provider: one HTTP exchange. |