Just launched
We're actively working on new content and improvements to our documentation. We'd love to hear your thoughts, launch quick survey
Paddle Billing
Search

Paddle.Environment.set()

Sets environment to sandbox or live.

Use Paddle.Environment.set() to set the environment for your checkout.

Only used to set the sandbox environment. If not present, Paddle uses the production environment.

You should call this method before calling any other Paddle.js methods, ideally just before your Paddle.Setup() call.

Parameters

environmentstring

Paddle environment that you're working with.

Examples

Related pages