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.Initialize() call.

Parameters

environmentstring

Paddle environment that you're working with.

Examples

Related pages