PayPal Sandbox Card Test Service: A Safe Developer Guide
A developer guide to PayPal's sandbox card test service: what test cards do, where they work, and why they can't verify real cards or CVVs.
Redeem your gift cards at any of our Merchants
Onyx Gift Cards is a Grenadian company designed to introduce, market and manage gift cards systems in Grenada for retailers and corporations. We are enthusiastic about the effect and influence we will have on the local market. We intend to expand our systems regionally with a range of product offerings and services.
Gift cards are the preferred way of giving and receiving gifts. They carry a monetary value that can be redeemed for gifts at your favorite store.
Onyx GiftCards are “Open Gift Cards” which means that they can be redeemed at multiple merchant locations. They are standard credit card size, can fit into the average wallet and made of PVC plastic. Onyx GiftCards are Barcoded for security and safety for the consumer and bear a disclaimer at the back.
Onyx Giftcards can be bought with a branded Card backer which is black in colour and is designed to fit the card. There is an area to write a brief message to the recipient as well.
The PayPal Sandbox is a free test environment where developers run card payments on fake money. Test card numbers, a dummy expiry, and a sandbox buyer account let you check checkout pages, decline handling, and webhook events before you touch a live account. No real card network is involved, so a failed test costs nothing.
The platform lives inside the PayPal Developer Dashboard. You create app credentials, generate test accounts, and pull card numbers from the same place. Most API calls behave like the live version, but every transaction stays walled off from production.
PayPal publishes test card numbers in its developer documentation and inside the dashboard. Copy them from there instead of a blog post, because old numbers get retired and a stale card fails the same way a real decline does.
The number alone is not enough. Sandbox checkout also checks the CVV and expiry, and a mismatch throws a validation error before the payment reaches PayPal.
Repeat the flow for each decline case you support. A useful test set covers the success path, a generic decline, an expired card, and a 3D Secure challenge if your region offers one.
Never enter a real card number, a real CVV, or a live customer's details in sandbox fields, even for a quick check. Sandbox traffic is not a secure store of card data, and mixing live card details into a test flow breaks PCI rules.
Use sandbox credentials only. If a real card gets used by mistake, treat it as an incident, review the logs, and rotate the affected keys.
A key pair from the live app will not work against the sandbox URL, and the error often looks like a generic authentication failure. Check the base URL and the credentials in the same request.
Test accounts can fall out of sync after long idle periods or a password change. Delete the account and create a fresh buyer instead of debugging a login loop.
Sandbox webhooks fire against the URL saved in the app settings, not the one in your local config. If events go missing, compare the two before you rewrite the handler.
Some card types return a different response in sandbox than in production, and a few regional cards skip checks entirely. Log the full response object and compare it with the documented values.
Funds are fake, so you cannot withdraw, settle, or dispute in the usual sense. Balance top-ups and refunds run as simulated events. The API shape stays the same, which is the point: you can build the integration once and switch the credentials at launch.
Settlement timing is looser. A sandbox payment may confirm in seconds and a refund may take a refresh or two to appear, so build your tests around the documented status values rather than a fixed timer.
No. Test numbers are rejected by the live gateway, and using them outside the sandbox gives you nothing useful for a production launch.
Yes. The developer account, test accounts, and test cards cost nothing, and there is no limit on the number of sandbox transactions you can run.
Refunds work through the dashboard or the refund API and show up against the original test transaction. Dispute and chargeback simulation is limited, so check the docs for your region before you promise that flow to anyone.
Sandbox accounts and their history persist until you delete them. Teams that share a developer account often clean up old apps and test users on a schedule so the list stays readable.