API Endpoints
Stripe API Endpoints
These are the endpoints for various operations related to the Stripe integration:
- Checkout API: Used for processing payments through Stripe.
- Switch Plan: Endpoint for switching subscription plans.
- Billing Portal API: Allows users to manage their billing information.
- Webhook API: Endpoint for handling webhook events from Stripe.
- Upload URL: Endpoint for obtaining a URL to upload files.
API Endpoints
src/config/api.ts
export const API = {
CHECKOUT_API: `/api/stripe/checkout`,
SWITCH_PLAN: `/api/stripe/switch`,
BILLING_PORTAL_API: `/api/stripe/portal`,
WEBHOOK_API: `/api/stripe/webhook`,
UPLOAD_URL: `/api/upload-url`,
};
These endpoints are crucial for integrating Stripe functionality and file upload functionality into your application. You can use these endpoints to perform various tasks like processing payments, managing subscriptions, and handling webhook events.
Make sure to configure your backend to handle requests to these endpoints accordingly.