Switch Wix Payments test mode

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Switches the app's Wix Payments checkout between test mode and live.

While test mode is on, the checkout takes test payments and real cards aren't charged. Verify a test purchase, then send test_mode: false to start taking real payments. The mode is a Wix Payments setting, so the switch applies to the published app without a deploy.

<Warning>Turning test mode on stops real customers from paying until the app is switched back to live.</Warning>

The response carries the mode Wix reports after the call. Sending the mode the app is already in changes nothing and returns it. No other published endpoint returns the current mode.

Requires write access to the app and a connected Wix Payments account.

This is limited to 30 requests an hour per caller. Some workspaces have a different limit.

put/api/apps/{app_id}/payments/wix/test-mode

Path parameters

app_idstring required

ID of the Base44 app.

ID of the Base44 app.

Request body

test_modeboolean required

Whether to switch the checkout to test mode (true) or live (false).

Response

The app's Wix Payments mode after the call.

test_modeboolean required

Whether the checkout is in test mode (true) or live (false).

Changes

Changed in 1 of the 14 revisions of this API.1