Stripe
With Stripe, members pay by card, Apple Pay, Google Pay, Link and the other ways Stripe offers in their country. They pay in the form of Stripe on the payment page of your own site, or on the secure checkout page of Stripe if you keep them there. It takes one-off payments and subscriptions that renew by themselves. The money goes to your own Stripe account, and the fees of Stripe apply, with nothing added to them.
Setting it up takes about ten minutes: two keys from the Stripe Dashboard, the keys in Poly Community, the webhook, then a test payment.
You need a Stripe account, and your site on https for the webhook. Test mode works as soon as the account is made: Stripe asks for your business details only when you go live.
How payments work for every way to pay is on Payments.
1. Make a Stripe account
- Go to dashboard.stripe.com/register and sign up with your email address, your name, the country of your business and a password.
- Confirm your email address with the link Stripe sends.
A new account opens in a sandbox, a test copy of the account where no real money moves. The Dashboard shows a Sandbox bar at the top while you are in it. Make the test key there.
2. Make the key
Your site needs one key from Stripe that only it knows, allowed only what it uses. Stripe calls it a secret key. (The second key, the publishable key, is already there: see step 5.)
-
In the Stripe Dashboard, open API keys. Make one in Stripe on the Stripe page of the plugin opens it too.
-
Press Create secret key.
-
On the first step, which asks how you will use the key, choose Sharing with a third-party service. Enter Poly Community as the Vendor name and the address of your site as the URL, and press Continue.
-
Under Assign permissions to your key, choose Custom permissions and press Continue.
-
Give the key these permissions in the In your account column, and leave every other at None. The search box at the top finds each by its name.
Permission Access Accounts Read Checkout Sessions Write Customers Write Products Write Prices Write Subscriptions Write Charges and Refunds Write Customer Portal Write Webhook Endpoints, Event Destinations Write Events Read Invoices Read Payment Intents Read Payment Disputes Read The Stripe page of the plugin lists the same permissions while no key is saved.
-
Press Continue. Under Name and review your key, Stripe shows the permissions you gave: the thirteen of the table, and none in connected accounts.
-
Press Create key, and confirm it if Stripe asks you to. Stripe shows the key once, beginning with
rk_test_. Copy it into your password manager, as Stripe does not show it again.
Webhook Endpoints, Event Destinations: Write lets your site set up its own webhook. A key with it can also read every event of your Stripe account, so make this key for this site alone and use it nowhere else.
3. Enter the key
-
In WordPress, go to Poly Community → Settings → Services → Payments.
-
Press Connect beside Stripe. Keys for says Test mode.

Settings → Services → Payments → Stripe -
Paste the key into Secret key and press Save and check.
Your site asks Stripe whose account the key opens and tries each permission it needs. The check says Connected to your account, with its country and currency (reading it is the first permission), and that the 12 more permissions the key needs are there. A permission missing is named, with what to set in Stripe.

4. Set up the webhook
Under Webhook, press Set it up for me. Your site makes the webhook in your Stripe account and keeps its signing secret, with nothing to copy. Check again then says Stripe sends its events to this site.

The webhook is how Stripe tells your site at once that a payment, a renewal or a refund happened. A site on your own computer or behind a password cannot get it. Payments still work there: your site asks Stripe when a buyer comes back, and every few minutes.
If the address of your site changes, the check says the webhook points at another address. Press Set it up again.
5. Let members pay on your site
With the publishable key of Stripe saved, members pay in the form of Stripe on the payment page of your site, and never leave it. The card is typed in a frame of Stripe inside that page, so card details still never reach your site.
- In the Stripe Dashboard, open API keys and copy the Publishable key, which begins with
pk_test_. Stripe shows it without asking, as it is not a secret: it only lets the form of Stripe open on your site. - On the Stripe page of the plugin, paste it into Publishable key and press Save and check.
- Pay on this site is on. It says Buyers pay in the form of Stripe on this site.

What a member sees when they join a paid plan or buy a ticket:
- The payment page of your site, with your name and look, what they buy and its price, and the form of Stripe under it: card, wallets and the other ways Stripe offers them.
- Once paid, they are back on the page they came from, and what they bought opens as soon as Stripe confirms it.
- If the form cannot open (a browser blocking the script of Stripe, for example), the page says nothing was charged and offers Pay on the page of Stripe instead.
The script of Stripe (js.stripe.com) loads on the payment pages of your site alone (paying, and changing a card), never on the other pages.
To keep members on the checkout page of Stripe instead, turn Pay on this site off. Without a publishable key they go there too.
Apple Pay shows in the form on your site once your domain is registered with Stripe: open the Payment method domains page of the Stripe Dashboard, press Add a new domain, enter the domain of your site and press Save and continue.
6. Make a test payment
- On Settings → Services → Payments, under Try it, enter an amount and press Pay it.
- The form of Stripe opens on your payment page (or the checkout page of Stripe, if Pay on this site is off). Pay with the test card
4242 4242 4242 4242, any date ahead such as12/34, and any three digits. - You come back to your site, which says The test payment arrived.
- Open it with See it in Payments. It is Paid, and under What Stripe told this site, the notice
checkout.session.completedis Handled: the webhook works. - Press Refund, then Refund all of it. The payment says Refunded, and the access it gave ends.
Stripe may show a buyer the price in their own currency, such as hryvnias for a price in dollars: that is the Adaptive Pricing of Stripe, on by default. Your site still records the payment and its refund in your own currency.
7. Go live
When Stripe has activated your account for real payments:
- In the Stripe Dashboard, leave the sandbox for your account itself, and make the same key there, with the same permissions. It begins with
rk_live_. The live Publishable key begins withpk_live_. - On the Stripe page of the plugin, choose Live mode under Keys for, paste both keys, press Save and check, then Set it up for me under Webhook.
- Look at the two settings Go live names in Stripe: that receipts are emailed to members, and what happens when a renewal fails. Its links open them.
- Press Go live.
See Go live for what changes then.
Members and their plans
A plan priced by the month or the year is a subscription at Stripe, which charges it again each period by itself and tells your site through the webhook. Members look after it in Billing, on their profile, without leaving your site:
- Change card: the payment page of your site opens with the form of Stripe to save another card (or the page of Stripe, if Pay on this site is off). Nothing is charged then, and the next payments are taken from the new card. When a payment did not go through, Billing says so and offers this first, and the payment that failed is taken from the new card at once, so the plan is paid again without waiting for the next try of Stripe.
- Switch to another plan, on the Plans page: by default the new plan starts at the next renewal. Until then the member keeps the plan they paid for, nothing is charged or refunded, and the renewal takes the price of the new plan. Billing says Changes to the new plan on that day, with Stay on the plan they have, which takes the switch back. Choose how it works under When a member switches plan on the Stripe page of the plugin: At the next renewal, or Members cannot switch, and Billing then says plainly to cancel and join the other plan once theirs ends. A switch keeps how often a member pays: a monthly plan switches to another monthly price, as Stripe would charge a change from monthly to yearly at once.
- Cancel: the plan stays theirs until the period they paid for ends, and nothing more is charged.
- Keep the plan: a plan set to end runs on again and renews as before.
- Pause and Resume, once you turn on Members can pause on the Stripe page of the plugin (off at first): nothing more is charged while a plan is paused, and it stays theirs until the time they paid for ends. Resumed before then, it renews as before. Resumed later, it is charged at once for a new period from that day, so no paused time is free and none is paid twice. You can pause a plan for a member yourself from Subscriptions, with the same rules.
When a renewal fails, Stripe tries the card again, and the member keeps the plan for the Days of grace set under More settings.
When the check finds a problem
- Stripe did not accept this key: the key was deleted or rolled in Stripe. Make a new one and paste it.
- The key is missing a permission: in Stripe, edit the key and set what the check names, then press Check again.
- The webhook was deleted in Stripe or The webhook needs setting up again: press Set it up again.
- Stripe has not turned on payments for this account yet: finish the details Stripe asks for in its Dashboard.
- Members cannot change their card from Billing: the key may not read SetupIntents, the cards members save. Payments work without it. In Stripe, edit the key to allow reading them, then press Check again.
- A new card waits for the next retry of a failed renewal: the key may not write Invoices, so a member who changes the card of a plan whose payment failed pays it only when Stripe tries again, days later. Payments work without it. In Stripe, edit the key and set Invoices to Write, then press Check again.