|
1 | 1 | --- |
2 | 2 | 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." |
4 | 4 | --- |
5 | 5 |
|
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: |
7 | 7 |
|
8 | 8 | <Frame></Frame> |
9 | 9 |
|
@@ -52,48 +52,36 @@ This is the domain your paywalls will be shown from. This was set when the Strip |
52 | 52 | <Frame></Frame> |
53 | 53 |
|
54 | 54 | ### 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: |
56 | 56 |
|
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 |
59 | 65 |
|
60 | | -To access these, click on the **[API Keys](https://dashboard.stripe.com/apikeys)** link: |
61 | | - |
62 | | -<Frame></Frame> |
63 | | - |
64 | | -Under **Restricted Keys**, click on **+ Create restricted key**: |
65 | | - |
66 | | -<Frame></Frame> |
67 | | - |
68 | | -Choose "Providing this key to another website" and click **Continue ->**: |
69 | | - |
70 | | -<Frame></Frame> |
71 | | - |
72 | | -Use "Superwall" as the name and "superwall.com" as the URL, then click **Create restricted key**: |
73 | | - |
74 | | -<Frame></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></Frame> |
79 | | - |
80 | | -From there, copy your **Publishable Key** and **copied key** from the Stripe dashboard to Superwall: |
81 | | - |
82 | | -<Frame></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: |
85 | 67 |
|
86 | 68 | <Frame></Frame> |
87 | 69 |
|
88 | 70 | ### Stripe Sandbox Configuration |
89 | 71 |
|
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> |
91 | 75 |
|
92 | | -You should see something similar to this: |
| 76 | +For sandbox/test mode: |
93 | 77 |
|
94 | | -<Frame></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 |
95 | 83 |
|
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. |
97 | 85 |
|
98 | 86 | ### iOS configuration |
99 | 87 |
|
|
0 commit comments