For payment services providers

JEK eReceipt integration

Connect your terminals and online checkout to JEK. Turn successful payments into digital receipts, returning customers and JeKoin rewards.

JEK eReceipt
ECR API
Android SDK
NFC card tap
Show your payment QR

Two integration paths

Choose where JEK eReceipt enters your payment stack

Use ECR APIs with a JEK-capable terminal, or embed the Android JEK Terminal SDK in a new smart payment terminal.

Proposed v1 specification

These are proposed contracts for partner review, not live public endpoints or a published SDK.

01

For JEK-capable terminals

1. ECR integration

Let a POS, kiosk or external system send itemized baskets to the terminal through a local LAN API or an Internet-based web ECR API.

POS / Kiosk / ECR
JEK-capable terminal
Receipt QR
  • Send line items and totals
  • Keep payment authorization in the terminal
  • Issue the eReceipt only after approval
View ECR API
02

For new Android payment terminals

2. Android JEK Terminal SDK

Embed one AAR in the payment application to receive ECR baskets, issue receipts and render the customer QR.

ECR basket
JEK Terminal SDK
Scan eReceipt
  • Built-in ECR bridge
  • Secure device enrolment
  • QR bitmap + web URL
View SDK design

Shared contract

Integer minor units, explicit currency, idempotent basket IDs and no PAN, CVV or customer data in the QR.

ECR API

Itemized baskets in. Receipt status out.

Use the same versioned basket contract over terminal-hosted LAN HTTP or JEK-hosted Internet HTTPS. The payment application owns approval; the POS cannot mark its own basket as paid.

Two ways to reach the same terminal

LAN terminal API
http://<terminal-lan-ip>:8787

Send local HTTP requests directly to the paired terminal on the store network. Use WebSocket events or poll basket status.

Internet web ECR API
https://<jek-ecr-host>

Send HTTPS requests to JEK from any network. The terminalId routes the basket to an online terminal; receive signed webhooks or poll status.

Both transports use the basket JSON and paths below. Internet requests add /terminals/{terminalId} before /baskets; LAN requests go straight to /baskets.

PUT/baskets/{basketId}Create or replace before payment starts
GET/baskets/{basketId}Read basket, payment and receipt state
POST/baskets/{basketId}:cancelCancel before payment approval
GET/baskets/{basketId}/receiptRead the issued URL and QR payload
WS/eventsLAN: subscribe to payment and receipt events
POST{yourWebhookUrl}Internet: receive signed payment and receipt events

LAN WebSocket or Internet signed webhook: basket.accepted → payment.approved → receipt.issued / receipt.failed

Create or replace a basketHTTP + JSON
# Terminal LAN (direct to the paired terminal)
PUT http://<terminal-lan-ip>:8787/jek/ecr/v1/baskets/pos-20261122-000184

# Internet web ECR (JEK routes to the named terminal)
PUT https://<jek-ecr-host>/jek/ecr/v1/terminals/terminal-123/baskets/pos-20261122-000184

Authorization: Bearer <paired-ecr-credential>
Idempotency-Key: pos-20261122-000184
Content-Type: application/json

{
  "schema_version": "1.0",
  "basket_id": "pos-20261122-000184",
  "order_reference": "POS-184",
  "currency": "HKD",
  "items": [
    {
      "line_id": "1",
      "sku": "FLAT-WHITE",
      "name": "Flat white",
      "quantity": "2",
      "unit": "ea",
      "unit_price_minor": 3800,
      "line_total_minor": 7600
    }
  ],
  "subtotal_minor": 7600,
  "discount_minor": 0,
  "tax_minor": 0,
  "tip_minor": 0,
  "total_minor": 7600
}

200 OK
{
  "basket_id": "pos-20261122-000184",
  "status": "AWAITING_PAYMENT",
  "payment_amount_minor": 7600,
  "currency": "HKD"
}

Amounts are integer minor units. subtotal_minor must equal the sum of line_total_minor; total_minor = subtotal − discount + tax + tip.

Issued receipt responseHTTP + JSON
GET /jek/ecr/v1/baskets/pos-20261122-000184/receipt

200 OK
{
  "basket_id": "pos-20261122-000184",
  "payment_reference": "psp-transaction-reference",
  "status": "ISSUED",
  "receipt_id": "rcpt_01JEXAMPLE",
  "receipt_url": "https://pass.jek.app/r/<opaque-receipt-token>",
  "qr_payload": "https://pass.jek.app/r/<opaque-receipt-token>"
}

The QR contains only an opaque HTTPS receipt URL. The customer scans it to open the JEK eReceipt website.

Payment and delivery rules

  • Lock basket edits when payment starts; reject amount or currency mismatches.
  • Return 409 for a completed basket or state conflict, and 422 for invalid totals or line items.
  • Use paired credentials on an isolated LAN; require HTTPS, terminal routing and signed webhooks over the Internet. Never send card numbers, CVV or track data.

Android SDK

Add JEK without rebuilding your payment application

The SDK runs inside your payment app. Its ECR bridge uses the same basket contract, while the host app supplies the trusted payment approval.

SDK modules

EcrBridge

Receives and validates ECR baskets from LAN or web connections.

ReceiptClient

Prepares, issues and retries receipt requests idempotently.

QrRenderer

Turns the returned payload into a Bitmap for the terminal display or printer.

DeviceCredentials

Stores terminal credentials with Android Keystore.

Kotlin integration sketchANDROID AAR
val jek = JekTerminalSdk.initialize(
  context = context,
  config = JekConfig(merchantId, terminalId, Environment.PRODUCTION),
  credentials = deviceCredentials // Android Keystore
)

// LAN HTTP and the outbound web ECR channel share one basket handler.
jek.ecrBridge.start(
  EcrBridgeConfig(
    localPort = 8787,
    enableWebChannel = true,
    requireClientCertificate = true
  )
) { basket ->
  paymentApp.prepare(basket.totalMinor, basket.currency)
}

// Called only by the trusted payment app after authorization.
suspend fun onPaymentApproved(basketId: String) {
  val receipt = jek.receipts.issue(
    IssueReceiptRequest(
      basketId = basketId,
      approval = paymentApp.approvalFor(basketId),
      idempotencyKey = basketId
    )
  )
  terminalDisplay.showQr(receipt.qrBitmap)
  // receipt.url == receipt.qrPayload
}

Issue only from the payment app after a verified approval. Receipt failure must not reverse or block an approved payment.

A viewable eReceipt requires JEK sync. Retry with the same basket and receipt IDs; never display an unissued QR.

JEK partner onboarding supplies the AAR, device enrolment, API hosts, signing requirements and certification tests.

The customer journey

In store and online. Connected by JEK.

Turn the first payment into a lasting connection.

  1. 01

    Pay and check the link

    The customer taps a card or presents a payment QR. The gateway checks for a linked JEK account.

  2. 02

    Invite them to collect

    After a successful payment, show the receipt QR or the supported iPhone tap invitation. The customer opens JEK and verifies their phone.

  3. 03

    Save the first e-receipt

    Associate the completed transaction with the verified account. Future eligible linked payments deliver receipts automatically.

Phone-tap collection depends on certified terminal support. Keep receipt QR collection available on iPhone and Android; Google Wallet pass recognition is separate from tap-to-sign-up.

Integration handoff

Three systems. One connected purchase.

Terminal or hosted checkout

Initiate payment, show the returned receipt status and present the collection or view-receipt link.

Your payment gateway

Resolve the verified customer association and send confirmed transaction, merchant, amount, currency and receipt details to JEK.

JEK eReceipt

Verify the member, keep the receipt in their account and make it accessible in JEK with the eligible JeKoin reward.

Agree the contract with JEK

JEK supplies partner-specific API access, field mapping and callback requirements during onboarding. This journey overview is not a public API specification.

Certify before rollout

Test new and returning members, QR fallback, payment failures, duplicate callbacks and receipt access. Never match customers by card last four digits or a wallet identifier alone.

Compatible payment terminals

Start with the terminals your merchants already use

Explore terminal examples from PAX, SUNMI, Castles, Ingenico and Verifone. JEK confirms model, firmware and payment application compatibility during integration.

Other terminal estate

Talk to JEK about compatibility for additional NFC terminal models and payment applications.

Check compatibility

How integration works

From terminal configuration to merchant rollout

JEK works with your team to configure, test and certify the experience before it reaches shoppers.

01

Plan the integration

Share your terminal models, firmware, payment application and target merchant markets with JEK.

02

Enable JEK eReceipt

Add the JEK eReceipt configuration to your terminal payment application using the onboarding details supplied by JEK.

03

Certify the full journey

Test pass recognition, payment completion, digital-receipt matching and JeKoin earning, including transactions without a JEK eReceipt.

04

Roll out to merchants

Deploy the certified configuration to participating merchant terminals and coordinate ongoing support with JEK.

Built to work alongside payments

Your payment flow stays yours

JEK adds pass recognition and rewards without replacing your payment processing or authorization.

Your payment services provider

Continues to authorize and process the contactless transaction.

The JEK layer

Recognizes JEK eReceipt, connects the digital receipt and updates JeKoin for eligible purchases.

What the terminal needs

A practical compatibility checklist

  • Contactless NFC payments
  • JEK eReceipt recognition capability
  • Compatible model, firmware and payment application
  • Transaction identifiers for receipt and reward matching

Google Smart Tap is also available for supported Google Wallet integrations.

Ready to connect your terminals?

Tell us your terminal models, payment application and target markets. The JEK team will guide the integration and certification.