Package com.codename1.payment.terminal
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.
-
ClassDescriptionWhat a card receipt has to show, as the terminal reported it.How the card was read.How the cardholder proved they hold the card.The default
TerminalTransport, overConnectionRequest.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.The operations aPaymentTerminalcan perform, as reported byPaymentTerminal.supports(TerminalOperation).The terminal may or may not have charged the card, and could not say which.What aPaymentTerminalshould charge.The outcome ofPaymentTerminal.reconcile(): the terminal closed its batch and sent it to the acquirer for settlement.What aPaymentTerminal.refund(TerminalRefundRequest)should return.The outcome of one operation on aPaymentTerminal: a sale, a pre-authorization, a capture, a reversal, a refund or a lookup.Assembles aTerminalResult; what each terminal implementation uses.How an operation ended.How a network terminal reaches its provider: one HTTP exchange.