Skip to content

Cake Digital Bank

Build with Cake

Accept payments, authenticate cardholders, and verify identities — with the SDKs, REST APIs, and guides behind Cake Digital Bank.

Payment Gateway · Web SDK
js
// After loading https://bn.cake.vn/bn-sdk/v2.4.0/index.js
const bahn = new Bahn({ pk: "pk_test_...", environment: "sandbox" });
bahn.mountCard("#card-container");

// client_secret comes from the payment intent your backend created
const { three_ds_payload } = await bahn.confirmPayment({ client_secret });

if (three_ds_payload) {
  bahn.mount3DS(three_ds_payload.id, { onSuccess, onFailure });
}
eKYC · REST API
bash
# Match the selfie against the portrait on the ID card
curl -X POST '<BASE_URL>/v1/compare_faces_sync' \
  -H 'Authorization: ATV <ACCESS_ID>:<SIGNATURE>' \
  -H 'X-TV-Timestamp: <TIMESTAMP>' \
  -H 'Content-Type: application/json' \
  -d '{
    "image1": { "id": "<SELFIE_IMAGE_ID>" },
    "image2": { "id": "<FRONT_IMAGE_ID>" }
  }'
SmartOTP · REST API
bash
# Verify an OTP bound to one transaction
curl -X POST '<BASE_URL>/saas-sotp/validate-sotp' \
  -H 'Content-Type: application/json' \
  -d '{
    "partner_id": "{{partner_id}}", "partner_key": "{{partner_key}}",
    "token": "{{token}}", "app_id": "{{app_id}}",
    "transaction_id": "{{transaction_id}}",
    "otp": "123456", "otp_type": "advance"
  }'

Products

Payment Gateway

Accept cards, Napas QR, Apple Pay, and Google Pay, with 3-D Secure built in — via Web SDK, Mobile SDK, or REST API.

Digital Identity

Verify who your customer is with eID chip reading and eKYC onboarding, then authenticate them with SmartOTP and FaceAuthen — and cardholders with 3-D Secure via ACS.

Developers