Skip to Content
AffFast

test_mode_only

This resource works only in test mode. Use a test key (sk_test_...).

HTTP status: 403. Error type: permission_error.

This resource works only in test mode. Use a test key (sktest...).

Example

{
  "error": {
    "type": "permission_error",
    "code": "test_mode_only",
    "message": "This resource works only in test mode. Use a test key (sk_test_...).",
    "doc_url": "https://docs.afffast.com/errors/test-mode-only",
    "request_id": "req_3kQ9x7WmZpL2vNd8TfYb4A"
  }
}

Causes

  • The operation works only in test mode, and you used a live key. The test helpers (/v1/test/...) are an example.

How to fix

  • Use a test key (sk_test_...). See Test mode.

On this page