VietBilling

Subscription Billing

One subscription state your backend can trust.

Track the current period, payment state, and PayOS renewal flow without stitching together disconnected status tables.

Start for free

Outcome

Your application grants access only after a valid webhook or confirmed API response.

01

Create Checkout

Send customer_id and product_id with an idempotency key.

02

Confirm Payment

PayOS receives funds and VietBilling completes the Checkout.

03

Synchronize access

Receive subscription.created and store subscription_id in your backend.

Integrate from your backend

API keys are server secrets. Never expose them in browser or mobile code.

BASE_URL="https://api.vietbilling.com/public/v2"
curl "$BASE_URL/subscriptions/$SUBSCRIPTION_ID" \
  -H "Authorization: Bearer vb_live_..."

FAQ

Are subscriptions automatically debited?

No. VietBilling creates a renewal URL for the next period and the customer pays through PayOS.

Which state should grant access?

Use a verified webhook or the Public API subscription result.