Vexor

vexor.capture()

The Appearance section allows you to customize the visual appearance of your server interface.

Theme

  1. Light: Select the light theme.
  2. Dark: Select the dark theme.
  3. System: Select the system theme.

Constructornew Vexor(params)

Vexor Constructor

Initialize a new Vexor instance for handling payments across multiple platforms.

Parameters

Returns

Returns a new Vexor instance.

export const vexor = new Vexor({
  publishableKey: 'your_publishable_key',
  projectId: 'your_project_id',
  secretKey: 'your_secret_key' // Optional
});

export const vexor = new Vexor({
  publishableKey: 'your_publishable_key',
  projectId: 'your_project_id',
  secretKey: 'your_secret_key' // Optional
});

Usage Examples

Here are some examples of how to instantiate a Vexor instance:

  1. Using the constructor:
export const vexor = new Vexor({
  publishableKey: 'pk_test_1234567890',
  projectId: 'proj_0987654321',
  secretKey: 'sk_test_1234567890'
});
  1. Using environment variables:
// Make sure to set NEXT_PUBLIC_VEXOR_PUBLISHABLE_KEY, NEXT_PUBLIC_VEXOR_PROJECT, and VEXOR_SECRET_KEY
export const vexor = Vexor.fromEnv();
  1. Using the static init method:
export const vexor = Vexor.init({
  publishableKey: 'pk_test_1234567890',
  projectId: 'proj_0987654321',
  secretKey: 'sk_test_1234567890'
});

Choose the method that best fits your application's architecture and security requirements.

There is a Button Test that will test the connection to your bucket, if it is correct it will show you a success message.

On this page