Stripe

The Stripe plugin (stripe-provider) lets players pay for the Store‘s chip packs, welcome pack and VIP with a card, Apple Pay or Google Pay. Players pay on Stripe’s own hosted checkout page, so no card number ever reaches your site (your card-data obligations stay at the simplest level, PCI SAQ-A).

  • Store purchases only. It is never shown as a deposit or withdrawal method in the cashier. To let players deposit real money by card, use the built-in Stripe payment system under Money › Payment Providers instead. Both can share one Stripe account.
  • Nothing is delivered before Stripe confirms the payment. The chips arrive when Stripe tells your site, in a signed message, that it was paid in full. A player coming back from the checkout page proves nothing.
  • Refunds and lost chargebacks take the chips back. A partial refund or an open chargeback is listed for you to decide.

The plugin uses plugin API 1.4. Its README, in the plugin archive, has the routes, the event-by-event behaviour and the list of Stripe API details to confirm before going live.

Enabling the Plugin

It’s sold separately as stripe-provider-<version>.tgz; upload it under Extensions › Plugins with Upload plugin and activate it. It asks for:

CapabilityWhy
storageIts records of each payment, processed Stripe events and the items waiting for you
schedulerThe status check every 5 minutes (pending payments whose confirmation was missed)

Activating it creates the payment system Card, Apple Pay, Google Pay under Money › Payment Providers (switched on). It stays invisible to players until the setup below is complete. Switch it off there to stop taking card payments.

Setting Up Stripe

Use test mode first. Test and live mode each have their own keys, webhook endpoint and signing secret; always use a pair from the same mode.

  1. In the Stripe Dashboard → Developers → API keys, copy the secret key (sk_test_…) into the plugin’s settings (Extensions › Plugins: Settings on the Stripe row). It is stored encrypted.
  2. Open the plugin’s page (Money › Stripe). The Setup card shows your webhook URL, for example https://poker.example.com/api/v1/plugins/stripe-provider/webhook, with a copy button.
  3. In Developers → Webhooks → Add endpoint, paste that URL, choose API version 2024-06-20, and select exactly these events: checkout.session.completed, checkout.session.async_payment_succeeded, checkout.session.async_payment_failed, checkout.session.expired, charge.refunded, charge.dispute.created, charge.dispute.closed.
  4. Copy the endpoint’s signing secret (whsec_…) into the plugin’s settings.
  5. In Settings → Payment methods, switch on cards, Apple Pay and Google Pay. Keep Adaptive Pricing, automatic tax and promotion codes off for Checkout: they change what the player is charged, and such a payment goes to review instead of being delivered.
  6. Check that Allowed currencies includes the store’s price currency (both are USD by default).

When the Setup card says Ready, the Store shows its packs, the welcome pack and VIP, with Card, Apple Pay, Google Pay as the payment method. The Setup card also shows the mode (a red LIVE mode badge for a live key), the time of the last webhook received and the last error.

Trying it in test mode

Buy a pack, and on the checkout page pay with Stripe’s test card 4242 4242 4242 4242, any future date and any CVC. The chips arrive a moment after the checkout (when Stripe’s webhook lands). Then press Refund next to the purchase on the plugin’s page: once Stripe confirms the refund, the store takes the chips back. Stripe’s testing documentation lists cards for declines, 3-D Secure and disputes.

Going live

  • The Stripe account is activated for live payments.
  • Replace the test pair with the live secret key and the signing secret of a live webhook endpoint (same URL, same events, same API version).
  • The server runs in production mode. The plugin’s page warns in red when a live key is used on a server that is not in production, or a test key in production.
  • Make one small real purchase, check that it is delivered, refund it from the plugin’s page and check that the chips are taken back.
  • Decide who watches Needs attention on the plugin’s page.

Settings

SettingDefault
Secret keysk_test_… or sk_live_… (a restricted rk_… key works too). Its prefix decides test or live mode. Encrypted.
Webhook signing secretThe endpoint’s whsec_…. Encrypted.
Allowed currenciesUSDCurrencies a purchase may be charged in. Zero-decimal currencies such as JPY work (a price with cents in JPY is refused); three-decimal currencies (KWD, BHD, JOD, OMR, TND) and HUF, ISK, TWD and UGX are refused.
Minimum / maximum purchasenonePer purchase, in its currency. Stripe also has its own minimum charge (about 0.50 USD).
Statement descriptor suffixnoneText shown after your account’s descriptor on the card statement (up to 22 characters with the prefix).
Site URLPUBLIC_URL, then APP_URLYour site’s public https address.
Return page/ext/store/shopWhere the checkout sends players back when the purchase names no page.

Saving checks the key formats without ever showing a key in a message.

Refunds and Chargebacks

What happens at StripeWhat the site does
The whole payment is refunded (from the plugin’s page or the Stripe Dashboard)The purchase is reversed and the store takes back the chips the player still has, the welcome pack’s card back and the VIP points
Part of the payment is refundedNothing is taken back. The purchase is listed under Needs attention: refund the rest at Stripe to reverse it, or press Resolve to keep it
A chargeback is openedListed under Needs attention. Respond in the Stripe Dashboard
The chargeback is lostThe purchase is reversed, as for a refund
The chargeback is wonThe item is closed
Stripe charged a different amount or currency than the pack’s priceNever delivered. The payment appears as Needs review in Money › Transactions, where you deliver it or close the review after refunding the player

Refund on the plugin’s page is for super admins. It asks Stripe for a full refund; the purchase changes only when Stripe confirms it.

When a Payment Seems Stuck

  • The player paid but has no chips. Look at Last webhook and Last error on the plugin’s page. A wrong signing secret shows as "Webhook signature rejected". The status check also settles a paid purchase within about 15 minutes without the webhook; Check with Stripe next to a pending purchase does it at once.
  • "A test event arrived but the secret key is a live key" (or the other way round): the secret key and the webhook endpoint belong to different modes. Stripe keeps retrying the events, so they are processed once the pair matches.
  • Packs do not show. The Setup card lists what is missing; also check the store’s Sell chip packs setting and that the payment system is switched on.

Not Supported

Deposits into real-money balances and withdrawals (use the built-in Stripe payment system for card deposits), subscriptions and saved cards, card fields on your own pages, automatic tax, Adaptive Pricing and promotion codes, and automatic handling of partial refunds.

See Also

  • Store — what players buy and the spending limits
  • Plugins — installing plugins and granting capabilities
  • Cashier and payments — payment systems and the transaction review
Try the live demo Pricing

Have questions about Poker Engine? We reply fast.