Skip to main content

Overview

The Payviox class is the main entry point for the Payviox SDK. It provides methods to create payment sessions, open payment pages, and retrieve available payment methods.

Constructor

new Payviox(token)

Creates a new instance of the Payviox SDK.
The SDK takes your public key (pk_), which is designed to run in the browser — it’s safe to ship in your client-side bundle. Never pass a secret key (sk_) to the SDK: secret keys are server-side only. See Authentication.

Parameters

Examples

Environment-specific tokens

It’s recommended to use different tokens for different environments:

Available methods

Once instantiated, the Payviox class provides the following methods:

Quick start

Installation

Install the Payviox SDK

Quickstart

Get started quickly

createSession()

Create payment sessions

Payment Methods

Understand payment methods