Skip to main content

Cas Link Demo - Payment Initiation

Beta

Enterprise payment initiation API

DEMO login credentials

User:bankusrdemo1
Pass:soproud

Configuration

Region:VN
Account type:ENTERPRISE
Display type:Popup
Scopes:payment_initiation,identity

Step 1: Create Grant Token

Call POST /grant/token with your configuration (country, scopes, redirectUri) to start the authorization flow. The API returns a grantToken used to open 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": "payment_initiation,identity",
    "language": "vi"
  }'