VietBilling
VietBilling Docs

VietBilling Documentation

Integrate subscription billing on PayOS with the Public API and webhooks.

A direct path to subscription billing

VietBilling connects your SaaS application to PayOS: your server creates Customers and Checkouts, customers pay through PayOS, and webhooks update Subscriptions and BenefitGrants.

  1. Create an Organization and connect PayOS.
  2. Create a recurring Product with a ProductPrice and Benefits.
  3. Create an API key and webhook endpoint.
  4. Create a customer, start checkout, and synchronize the subscription from webhooks.

Recommended path

For a first integration, read Getting Started, API Authentication, Checkout, and Webhooks.

Source-of-truth boundaries

VietBilling is the source of billing state and BenefitGrants. Your application remains the source of users and enforcement. Store the customer_id, subscription_id, and processed event ids; grant or revoke access only after processing a valid event.