pay-whopRailsSANDBOX · NO REAL MONEY

An open-source Rails payment adapter

Whop checkout.
Rails all the way back.

Try one-time payments, subscriptions and marketplace checkout. Watch verified webhooks update Rails, then explore refunds and billing controls.

Your own billing session. Test cards only. No real charge.

YOUR RAILS APP / BILLING

user.set_payment_processor(:whop)

checkout = user.payment_processor.checkout(
  variant_id: "plan_...",
  redirect_url: billing_url
)

redirect_to checkout.purchase_url,
  allow_other_host: true

# After the verified webhook:
user.payment_processor.subscribed? # true

SIMULATION · LOCAL DEMO DATA

Invoice and transfer simulations

Explore these flows without a Whop account or identity verification. These controls only update this demo: they do not call Whop, send invoices, charge cards, move funds or generate Whop webhooks. Simulated outcomes do not confirm that Whop can perform the operation.

01 / CHECK OUT

Pay with a test card

Open the hosted checkout and sign into a Whop sandbox account. Use the test details below.

02 / SYNC

Let the webhook arrive

Whop signs the event. The adapter verifies it, fetches the current state and updates Pay.

03 / EXPLORE

Control your subscription

Pause billing, cancel, resume or refund a payment. Marketplace purchases include a $1 platform fee. Only your session's records appear here.

Your sandbox billing

Start a session to create your own test customer.

Refresh status

Subscriptions

No confirmed subscription yet. Returning from checkout alone does not grant access.

Payments

No successful payment yet.

Refunds can be unavailable while Whop's sandbox seller funds are pending. A refund does not cancel your subscription.

Your test card

4242 4242 4242 4242

Any future expiry · any 3-digit CVC
Use fictional billing details. Never enter a real card.

Test declines and authentication

Declined payment: 4000 0000 0000 0002
Save successfully, decline later charges: 4000 0000 0000 0341
3D Secure: 5385 3083 6013 5181 · enter Checkout1! on the authentication screen.

The checkout displays the configured test price and any tax before you submit. All amounts are sandbox money.

Use it in your Rails app

The demo runs the same gem in this repository. Follow the setup guide for checkout, migrations and webhook configuration.

Explore the gem on GitHub →

Alpha: one-time and recurring checkout, marketplace fees, saved methods, invoices, partial refunds and subscription controls. Plan swaps, seat changes and metered billing remain unsupported.