Skip to main content

Frontend Integration Guide

This comprehensive guide covers integrating the Billbora API with modern frontend applications, including React, Vue, and vanilla JavaScript implementations.

Overview

Billbora provides multiple integration options for frontend applications:

TypeScript SDK

Fully typed SDK with automatic error handling and retry logic

React Hooks

Pre-built hooks for common operations with React Query integration

Vue Composables

Vue 3 composables for reactive API integration

REST API

Direct REST API integration for any framework

TypeScript SDK

The official Billbora TypeScript SDK provides the easiest way to integrate with our API.

Installation

Basic Setup

Configuration Options

React Hooks

For React applications, we provide a comprehensive set of hooks built on React Query.

Installation

Provider Setup

Invoice Management

Real-time Updates

Form Integration

Vue Composables

For Vue 3 applications, we provide reactive composables.

Installation

Setup

Usage in Components

Direct API Integration

For other frameworks or vanilla JavaScript, you can integrate directly with our REST API.

Fetch API Example

Axios Example

Authentication Integration

JWT Authentication for Frontend Apps

For frontend applications that need user authentication:

Error Handling

Global Error Handler

Performance Optimization

Caching Strategies

Request Batching

Testing

Mock API Responses

Integration Tests

Next Steps

Authentication Setup

Configure authentication for your frontend application

Webhook Integration

Set up real-time updates with webhooks

Payment Processing

Accept payments directly in your application

API Reference

Explore all available endpoints and methods

Support

Need help with your integration?

Example Apps

Check out complete example applications

Community

Get help from other developers

Support

Contact our support team