Repository navigation
Card terminal API: Tap to Pay, Stripe smart readers, Adyen cloud terminals - #6397
shai-almog wants to merge 15 commits into
Conversation
…, Adyen cloud terminals Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Developer Guide build artifacts are available for download from this workflow run:
Developer Guide quality checks: |
Cloudflare Preview
|
|
Compared 301 screenshots: 301 matched. Native Android coverage
✅ Native Android screenshot tests passed. Native Android coverage
Benchmark ResultsDetailed Performance Metrics
|
Native fidelity (Android, Material 3)54 pairs compared -- median 95.6%, worst 91.3% ( Distribution --
Geometry vs native (bbox offset / size ratio / center offset / corner radius) -- gated separately from the visual score
Side-by-side comparisons (worst first)
|
…libraries Stripe Terminal pulls androidx.room 2.7 and lifecycle 2.8, which publish Android and desktop variants; the bare java-runtime request matched both (and their sources variants) and resolved neither. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |
…nMillis Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Compared 403 screenshots: 403 matched. |
|
Compared 316 screenshots: 316 matched. Benchmark ResultsDetailed Performance Metrics
|
…nds, lookup, receipts, tipping) PaymentTerminal becomes an abstract class with supports(TerminalOperation) and default-unsupported capture/reverse/refund/lookup/reconcile. An unknown outcome is a TerminalOutcomeUnknownException everywhere, including the Tap to Pay native bridges (STATUS_UNKNOWN). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…renced refunds are reversals Stripe maps a canceled PaymentIntent on reverse() to APPROVED, and an empty reference search to an unknown outcome (the index lags writes). Adyen uses the tenderReference.pspReference transaction ID and refunds a known payment with a ReversalRequest carrying ReversedAmount, so no card is needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Terminal checkouts polled to completion, pre-auth and completion, payment cancel, linked refunds, lookup and card fields. Every money-moving request is retried with its own idempotency key, so a lost answer cannot charge twice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Messages encrypted and authenticated with the terminal's shared key (PBKDF2-HMAC-SHA1, AES-256-CBC, HMAC-SHA256, as Adyen's Java library), sent to https://<host>:8443/nexo. The tests check interop against the JDK's own crypto in both directions and that a forged HMAC is rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The transport ZVT, MDB and ESC/POS drivers share. Blocking calls refuse the EDT; the TCP connect handoff and the in-memory pair use atomics, not locks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sale, pre-authorisation and booking, reversal, unlinked refund and end-of-day, from the published ZVT specification (PA00P015 13.09): DLE/STX framing with CRC-CCITT and ACK/NAK on serial links, bare APDUs over TCP, registration, intermediate status, receipts sent to the till, and an unknown outcome when the terminal is lost after accepting a command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The app acts as the vending controller: reset, setup, enable, begin session, vend request, vend success or failure, session complete. The 9-bit wire is left to an MdbBus implementation over the adapter board. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
com.codename1.pos: ESC/POS printer with cash drawer kick, QR and raster images; pole display; line-based barcode scanner. The Card Terminals chapter covers the full operation set, Square, Adyen local, ZVT, MDB, links and peripherals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Compared 316 screenshots: 316 matched. Benchmark ResultsDetailed Performance Metrics
ParparVM vs HotSpot (JDK 25): Windows x64Runner CPU: AMD64 Family 25 Model 1 Stepping 1, AuthenticAMD (baseline Ratios are ParparVM / JDK 25: below 1.00x ParparVM is faster (time) or smaller (RAM). Median of 5 interleaved, paired rounds; every run's output was verified. A ratio more than 20% (time) / 25% (RAM) above its baseline in
Result: no regression |
|
Compared 316 screenshots: 316 matched. ParparVM vs HotSpot (JDK 25): Linux x64Runner CPU: Intel(R) Xeon(R) 6975P-C (baseline Ratios are ParparVM / JDK 25: below 1.00x ParparVM is faster (time) or smaller (RAM). Median of 5 interleaved, paired rounds; every run's output was verified. A ratio more than 20% (time) / 25% (RAM) above its baseline in
Result: no regression |
|
Compared 316 screenshots: 316 matched. ParparVM vs HotSpot (JDK 25): Linux arm64Runner CPU: Neoverse-V3 (baseline 1 performance regression:
Ratios are ParparVM / JDK 25: below 1.00x ParparVM is faster (time) or smaller (RAM). Median of 5 interleaved, paired rounds; every run's output was verified. A ratio more than 20% (time) / 25% (RAM) above its baseline in
A change that moves performance ON PURPOSE records the new baseline in Result: performance regression |
…-contained snippets) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ZVT: a money command with no or an odd confirmation is an unknown outcome; cancel is sent by the operation thread, never interleaved; a completion without status is approved and an abort code wins. MDB: refuse prices the reader cannot express instead of truncating, unknown outcome after the vend request, completeVend reports settlement. StreamLink: atomic close flag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Compared 299 screenshots: 299 matched. Benchmark Results
Build and Run Timing
Detailed Performance Metrics
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Compared 12 screenshots: 12 matched. |
|
Compared 316 screenshots: 316 matched. Benchmark ResultsDetailed Performance Metrics
ParparVM vs HotSpot (JDK 25): Windows arm64Runner CPU: ARMv8 (64-bit) Family 8 Model D84 Revision 1, MICROSOFT CORPORATION (baseline 1 performance regression:
Ratios are ParparVM / JDK 25: below 1.00x ParparVM is faster (time) or smaller (RAM). Median of 5 interleaved, paired rounds; every run's output was verified. A ratio more than 20% (time) / 25% (RAM) above its baseline in
A change that moves performance ON PURPOSE records the new baseline in Result: performance regression |
✅ ByteCodeTranslator Quality ReportTest & Coverage
Benchmark Results
Static Analysis
Generated automatically by the PR CI workflow. |
















































































































Adds
com.codename1.payment.terminal, onePaymentTerminalAPI over three kinds of card terminal:tap.TapToPay: Tap to Pay on iPhone and Android, using the Stripe Terminal SDK 6.1.0. The builders add the SDK only to apps that reference the package, the same way WebRTC is handled. On Android,PlatformFeatureCatalogadds the Gradle dependency, raises the minimum SDK to 26 and adds the NFC and location permissions. Builds that don't use it strip the optionaltaptopaypackage. On iOS, the build turns onCN1_INCLUDE_TAP_TO_PAY, adds the pod and the proximity-reader entitlement, and sets the deployment target to 16. The interface the ports implement is inpayment/terminal/spi, outside the gated prefix, so theDisplayreference doesn't bring the SDK into every app. A catalog test checks this. The simulator fakes a phone: an amount ending in 01 is declined and one ending in 02 fails.stripe.StripeReaderTerminal: Stripe smart readers, driven entirely over REST, so it works on every platform.adyen.AdyenCloudTerminal: Adyen Terminal API 3.0 cloud terminals, also REST only.Money-safety behaviour (from three adversarial review rounds)
TransactionStatusRequest. If that never gets an answer, it aborts the payment and returns an error.cancel()isn't stuck behind the open payment request.Docs
New guide chapter,
Card-Terminals.asciidoc. It covers restricted keys or a server proxy, the entitlement warning (code signing fails until Apple grants it), and the two network threads.Verification
pre-push-gates.sh --fullis clean (the CI-only legs did not run)..mpasses a syntax-only compile against the Stripe headers, with the define on and off.Not verified: no real payment was taken, I didn't build a generated Gradle or Xcode project, and I didn't check the Stripe 6.x signatures against Stripe's docs. Stripe's real Android minimum may be above API 26. The Android bridge has no explicit R8 keep rule, the same as
cipherandar.🤖 Generated with Claude Code