> Godmode v0.20.0 documentation · Reviewed 2026-11-19
> Source: https://godmode.build/docs/provider-stripe

# Stripe

Add payments to your product and test the checkout before going live.

## Connect Stripe

Keep a working [native login](/docs/credentials#keep-a-working-login), or save the keys below.

```sh
godmode setup stripe
```

## Account access

Standard secret keys have broad API access in one account or sandbox. Test and live credentials are separate; publishable keys are for client applications and cannot perform secret-key operations. Restricted keys are an alternative. Webhook signing secrets are separate values.

## Add credentials

Save only the keys your product needs.

### Test secret key

Test payment operations in a sandbox before taking real payments.

**[Visit Stripe’s test keys](https://dashboard.stripe.com/test/apikeys)**

1. Under **Standard keys**, reveal the **Secret key** (sk_test_…) and copy it.

If there is no sk_test_ key, switch to a sandbox in the account picker.

Save as `STRIPE_TEST_SECRET_KEY` in Godmode.

### Test publishable key

Connect your browser checkout to Stripe's test environment.

**[Visit Stripe’s test keys](https://dashboard.stripe.com/test/apikeys)**

1. Under **Standard keys**, copy the **Publishable key** (pk_test_…).

Save as `STRIPE_TEST_PUBLISHABLE_KEY` in Godmode.

### Live secret key

Run payment operations in your live Stripe account.

**[Visit Stripe’s live keys](https://dashboard.stripe.com/apikeys)**

1. Select **Create secret key** and type the verification code.
2. Type a **Key name**, then select **Create**.
3. Select the key (sk_live_…) to copy it.

Save as `STRIPE_LIVE_SECRET_KEY` in Godmode.

### Live publishable key

Connect your browser checkout to Stripe's live environment.

**[Visit Stripe’s live keys](https://dashboard.stripe.com/apikeys)**

1. Under **Standard keys**, copy the **Publishable key** (pk_live_…).

If it starts with pk_test_, switch to live mode first.

Save as `STRIPE_LIVE_PUBLISHABLE_KEY` in Godmode.

## Check access

- Use the Stripe SDK or API to read the intended account and inspect a resource in the selected sandbox or live mode. Supply the selected secret key explicitly: these Godmode key names are not an automatic Stripe SDK configuration. Build and test payment flows in a sandbox before an authorized live operation.

## Restore access

- For an invalid or expired key, use the account's API keys page to create or rotate it and overwrite the matching Godmode entry. Stripe offers an expiration grace period for the old key. Check mode, restrictions and account status before assuming every denied operation needs rotation.

## Provider docs

- [API key types, environments and rotation](https://docs.stripe.com/keys)
- [Stripe API](https://docs.stripe.com/api)

Source: Godmode v0.20.0 provider catalog · 2026-11-13.
