Step 1: Create PAN Token
Use the Create PAN Token API with thecard_id parameter.
Request:
- Each token can only be used once
- Token expires after 60 seconds
Step 2: Prepare Styles (Optional)
You can customize the iframe appearance by providing CSS styles as a JSON object. The styles need be URL-encoded and passed as a query parameter.Available CSS Selectors
| Selector | Description | Supported Properties |
|---|---|---|
.uq-card-number | Card number | color, font-size, font-family, font-weight |
.uq-card-expiry | Expiry date | color, font-size, font-family, font-weight |
.uq-card-cvv | CVV | color, font-size, font-family, font-weight |
.uq-card-container | Container | background-color, padding, border, border-radius |
.uq-card-label | Label text | color, font-size |
.uq-card-button | Copy button | color, background-color, border, border-radius, padding |
.uq-card-button:hover | Button hover state | color, background-color |
.uq-card-button:active | Button active state | color, background-color |
.uq-card-tooltip | Copy tooltip | color, background-color, font-size, border-radius |
Supported CSS Properties
Global supported properties:color, background-color, font-size, font-family, font-weight, padding, margin, border, border-radius, text-align, line-height, letter-spacing
Step 3: Construct Iframe URL
Build the iframe source URL using the following pattern:Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
iframe_domain | string | Yes | Iframe service domain | https://embedded-sandbox.uqpaytech.com |
pan_token | string | Yes | PAN token from Step 1 | pan_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 |
card_id | string | Yes | Card identifier (must match token creation) | 7242a504-e43d-4b95-b4c8-f9fc5992d02b |
lang | string | No | Display language (default: en) | en, zh, zh-TW |
styles | string | No | URL-encoded CSS styles JSON | URL-encoded JSON object |
Environment Domains
- Sandbox:
https://embedded-sandbox.uqpaytech.com - Production:
https://embedded.uqpay.com

