Skip to content

Commit 788567f

Browse files
authored
Tweaks Stripe to point at app (#71)
1 parent 84eb187 commit 788567f

File tree

5 files changed

+26
-39
lines changed

5 files changed

+26
-39
lines changed

bun.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/docs/web-checkout/web-checkout-configuring-stripe-keys-and-settings.mdx

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: "Stripe Setup"
3-
description: "Create your Stripe keys to connect Superwall to Stripe. Fill out some settings to configure your app."
3+
description: "Connect Superwall to Stripe using the official Stripe app and configure your settings."
44
---
55

6-
Once you've created a [Stripe app](/web-checkout-creating-an-app), you'll need to configure it with your Stripe keys and fill in a few settings. This is a one-time setup that connects Superwall to Stripe. The easiest way to get started is to click on the link in your overview page, which will take you to your app's [Settings](/overview-settings) page:
6+
Once you've created a [Stripe app](/web-checkout-creating-an-app), you'll need to connect it with Stripe and fill in a few settings. This is a one-time setup that connects Superwall to Stripe. The easiest way to get started is to click on the link in your overview page, which will take you to your app's [Settings](/overview-settings) page:
77

88
<Frame>![](/images/web2app_prompt.jpeg)</Frame>
99

@@ -52,48 +52,36 @@ This is the domain your paywalls will be shown from. This was set when the Strip
5252
<Frame>![](/images/web-checkout-domain-section.png)</Frame>
5353

5454
### Stripe Live Configuration
55-
This section allows you to connect Stripe keys with Superwall. You will need:
55+
To connect Stripe with Superwall, you'll use the official Superwall Stripe app:
5656

57-
1. **Publishable Key:** A Stripe publishable key. Stripe creates this key for you, you don't need to generate it yourself.
58-
2. **Secret Key:** A Stripe secret key that you create. Once you've made one, paste it here.
57+
1. Visit the [Superwall app on Stripe Marketplace](https://marketplace.stripe.com/apps/superwall)
58+
2. Click **Install app** and follow the authorization flow
59+
3. After installation, you'll receive a **Publishable Key** and a **Restricted Secret Key** with the proper permissions already configured
60+
4. Copy both keys from the Stripe app installation page
61+
5. Paste the keys into the corresponding fields in Superwall:
62+
- **Publishable Key**: Your Stripe publishable key from the app
63+
- **Secret Key**: The restricted secret key provided by the app
64+
6. **Click** on **Update Configuration** to save your changes
5965

60-
To access these, click on the **[API Keys](https://dashboard.stripe.com/apikeys)** link:
61-
62-
<Frame>![](/images/web2app_live_api_keys.png)</Frame>
63-
64-
Under **Restricted Keys**, click on **+ Create restricted key**:
65-
66-
<Frame>![](/images/web2app_rkey.png)</Frame>
67-
68-
Choose "Providing this key to another website" and click **Continue ->**:
69-
70-
<Frame>![](/images/web2app_rkey_make.png)</Frame>
71-
72-
Use "Superwall" as the name and "superwall.com" as the URL, then click **Create restricted key**:
73-
74-
<Frame>![](/images/web2app_rkey_name.png)</Frame>
75-
76-
You'll get a modal of your restricted key, **copy this to your clipboard**, you won't be able to view it again:
77-
78-
<Frame>![](/images/web2app_key.png)</Frame>
79-
80-
From there, copy your **Publishable Key** and **copied key** from the Stripe dashboard to Superwall:
81-
82-
<Frame>![](/images/web2app_associatekeys.png)</Frame>
83-
84-
Once you've provided those two keys, **click** on **Update Configuration** to save your changes. This section should say "Configured" at the top right if setup was successful:
66+
This section should say "Configured" at the top right if setup was successful:
8567

8668
<Frame>![](/images/web2app_live_config.png)</Frame>
8769

8870
### Stripe Sandbox Configuration
8971

90-
For the sandbox configuration, you'll follow the same previous steps, **except you retrieve the keys from this link**: [Stripe Sandbox API Keys](https://dashboard.stripe.com/test/apikeys).
72+
<Note>
73+
The Superwall Stripe app provides both live and test mode keys. Make sure you're in the correct mode in your Stripe dashboard when copying keys.
74+
</Note>
9175

92-
You should see something similar to this:
76+
For sandbox/test mode:
9377

94-
<Frame>![](/images/web2app_testKey.png)</Frame>
78+
1. Switch to test mode in your Stripe dashboard
79+
2. Access the Superwall Stripe app settings to view your test mode keys
80+
3. Copy the test **Publishable Key** and **Secret Key** from the app
81+
4. Paste both keys into the Sandbox Configuration fields in Superwall
82+
5. **Click** on the **Update Configuration** button
9583

96-
Paste the both the **Publishable Key** and **Secret Key** into Superwall for each respective field and **click** on the **Update Configuration** button. As before, this section should say "Configured" at the top right if setup was successful.
84+
This section should say "Configured" at the top right if setup was successful.
9785

9886
### iOS configuration
9987

content/docs/web-checkout/web-checkout-creating-campaigns-to-show-paywalls.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Web Checkout Links"
33
description: "Learn how to use campaigns and placements to present web paywalls using Superwall's web checkout links."
44
---
55

6-
Once you've [created a Stripe app](/web-checkout-creating-an-app), [configured Stripe with Superwall](web-checkout-configuring-stripe-keys-and-settings) and have [created Stripe products](web-checkout-adding-a-stripe-product) — you're ready to configure a campaign to show a web paywall.
6+
Once you've [created a Stripe app](/web-checkout-creating-an-app), [configured Stripe with Superwall](web-checkout-configuring-stripe-keys-and-settings) via the [Superwall Stripe app](https://marketplace.stripe.com/apps/superwall) and have [created Stripe products](web-checkout-adding-a-stripe-product) — you're ready to configure a campaign to show a web paywall.
77

88
<Note>
99
Before you proceed, recall that web checkout has all of the advantages of the Superwall platform. If you are unfamiliar with how to create campaigns or what a placement is — we recommend you read through the [introduction](/home) documentation and [campaigns doc](/campaigns) first.

content/docs/web-checkout/web-checkout-direct-stripe-checkout.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For customers in the United States, you can offer Stripe products directly from
99

1010
<Steps>
1111
<Step title="Configure Web Checkout">
12-
First, follow the [web checkout setup guide](/web-checkout-overview#getting-setup) to create a Stripe app and configure your web checkout settings. Specifically, you'll need to complete the first three steps. This includes setting up your Stripe keys and configuring your app's settings.
12+
First, follow the [web checkout setup guide](/web-checkout-overview#getting-setup) to create a Stripe app and configure your web checkout settings. Specifically, you'll need to complete the first three steps. This includes installing the [Superwall Stripe app](https://marketplace.stripe.com/apps/superwall) and setting up your app's settings.
1313
</Step>
1414
<Step title="Add a Stripe product to an iOS paywall">
1515
Select a paywall and add a Stripe product to it. This will allow users to purchase the product directly from the paywall. Stripe products are prepended with "stripe" in the product selector:

content/docs/web-checkout/web-checkout-overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ Before you start, you'll need to have a Superwall account and an account with yo
4343

4444
1. **[Creating an app](/web-checkout-creating-an-app):** First, you'll add a Web Checkout app to an existing project within Superwall.
4545
2. Payment provider setup:
46-
- **[Stripe setup](/web-checkout-configuring-stripe-keys-and-settings):**
47-
- **[Paddle setup (private beta)](/web-checkout-paddle-setup):**
46+
- **[Stripe setup](/web-checkout-configuring-stripe-keys-and-settings):** Install the [Superwall Stripe app](https://marketplace.stripe.com/apps/superwall) for automatic configuration
47+
- **[Paddle setup (private beta)](/web-checkout-paddle-setup):** Configure your Paddle integration
4848
4. **[Managing products](/web-checkout-adding-a-stripe-product):** Create or import products to add to your web paywalls.
4949

5050
### Creating paywalls and campaigns

0 commit comments

Comments
 (0)