How to test payments in the Ruba sandbox
Test payments in Ruba’s sandbox, a separate environment with its own dashboard, API and checkout. Create a test shop, make an access token inside the sandbox, point your code at the sandbox API, and pay with the test card 4242 4242 4242 4242, a future expiry and any CVC. No real money moves, and nothing touches your live shop.
A separate world on purpose
Ruba’s sandbox accepts the test card 4242 4242 4242 4242, so no real money moves. Aisha in Lahore is building her first paid feature. She is afraid of charging a real card by mistake. Ruba’s sandbox is a separate server, fully apart from your live data. Because it handles money and must account for every movement, it walls off test data so the two never mix.
You can run as many experiments as you like. Treat it as your personal development server.
Set it up in four steps
- Step 1Open the sandboxsandbox.getruba.com.
- Step 2New organizationA test shop.
- Step 3Make a tokenInside the sandbox.
- Step 4Point your codeAt the sandbox API.
Choose New organization to create a test shop. Tokens made in production do not work in the sandbox, so create a new one there.
Great for Building and clicking around.
Watch for It is separate from your live dashboard.
Great for Your code and webhooks.
Watch for A production token will not work here.
Great for Walking through a purchase.
Watch for Use only the test card.
Point your code at the sandbox
Ruba’s official SDKs have a setting for the sandbox. Here are two of them.
const ruba = new Ruba({
server: 'sandbox',
accessToken: process.env['RUBA_ACCESS_TOKEN'] ?? '',
})s = Ruba(
base_url="https://sandbox-api.getruba.com",
access_token="<YOUR_BEARER_TOKEN_HERE>",
)Two things that surprise people
First, emails. In the sandbox, customer-facing emails such as order confirmations and renewal reminders go only to people who belong to your sandbox organization. Add yourself under Settings, then Team. A +test alias works only if the address without it belongs to a member.
Second, webhooks. Endpoint URLs must be public https URLs, and localhost is not allowed. Use an https tunnel for local work.
What to do next
Build, test, then go live. See the early-access deal. Ruba charges 4% + $0.50 per sale with no monthly fee, and every shop is reviewed before live payments. Related: handling webhooks.
The sandbox takes the test card 4242 4242 4242 4242, so nothing real moves. You need no company and no monthly fee to start. Early access gets your first paid feature a rate of 4% + $0.50 per sale, locked once you are approved and for as long as the account is open and in good standing. Ruba promises that a fee it never told you about is refunded, and that you get $100. Terms apply. See the early-access deal.
Questions people ask
What is the Ruba sandbox?
A separate testing environment with its own dashboard, API and checkout, fully apart from your live data. It was walled off on purpose, so test and live money never mix.
Which test card do I use?
Use 4242 4242 4242 4242 with a future expiration date and a random CVC to simulate a successful payment.
Do my live access tokens work in the sandbox?
No. You must create an access token inside the sandbox. A token created in production does not work there.
Why did I not get my test emails?
In the sandbox, customer-facing emails go only to people who belong to your sandbox organization. Add yourself under Settings, then Team. A +test alias works only if the address without it belongs to a member.
How do I test webhooks locally?
Webhook endpoint URLs must be public https URLs, and localhost is not allowed. Use an https tunnel for local development.
Sources
We check these when we update this guide. Rules can change, so check them yourself before you decide.
- Ruba: sandboxChecked 26 Nov 2026
- Ruba: webhook deliveryChecked 26 Nov 2026
- Ruba: TypeScript SDKChecked 26 Nov 2026
- Ruba: Python SDKChecked 26 Nov 2026
- Ruba: PHP SDKChecked 26 Nov 2026
- Ruba: pricing and feesChecked 26 Nov 2026