Cas Link Demo - Virtual Account
StableTài khoản ảo
Thông tin đăng nhập DEMO
User:
bankusrdemo1Pass:
soproudCấu hình
Khu vực:VN
Loại tài khoản:ENTERPRISE
Kiểu hiển thị:Popup
Scopes:virtual_account
Bước 1: Tạo Grant Token
Gọi API POST /grant/token với thông tin cấu hình (country, scopes, redirectUri) để khởi tạo tiến trình phân quyền. API sẽ trả về grantToken dùng để mở CasLink.
curl -X POST 'https://sandbox.bankhub.dev/grant/token' \
-H 'x-client-id: env.CLIENT_ID' \
-H 'x-secret-key: env.SECRET_KEY' \
-H 'Content-Type: application/json' \
-d '{
"country": "vn",
"redirectUri": "https://cas.so",
"scopes": "virtual_account",
"language": "vi"
}'