PayPal Sandbox Card Test Methods: A Developer Guide

Our Cards

Choose from any of our gift cards to give to your loved ones

related article

giftcardimage

Where to Use?

Redeem your gift cards at any of our Merchants

Using the PayPal Sandbox Card Test Tool: A Comprehensive Guide

Where to Buy?

You can purchase a gift card from any of these locations

more on this topic

ABOUT US

about

What is ONYX GiftCards?

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.

What is a Gift Card?

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.

How it Works?

  • Buy an Onyx Gift Card at these local stores
  • Give your gift card to friends, family, co-workers, etc.
  • The recipient can shop at our select merchants nationwide
  • Your friends, family, co-workers, etc. will present their gift card at checkout to pay for your item(s)
  • They will walk away happy with the best gift ever...the gift of Choice

Why ONYX GiftCards?

  • Save TIME. No need to run around looking for the perfect gift
  • Redeem from a variety of business island-wide. We will continue adding businesses as fast as ONYX grows.
  • ONYX Gift Cards do not expire
  • Cards are valued at convinient amounts to meet every need and occasion

PayPal sandbox card testing uses card numbers the sandbox itself issues. You either generate them in the PayPal Developer Dashboard or you use the static test numbers PayPal publishes for Braintree and Payflow. Real cards have no place here, and no sandbox card can move a cent. The point is to prove your integration handles approvals, declines, AVS mismatches, CVV failures, and 3D Secure challenges before a live card is ever involved.

Where the test cards actually come from

There is no single PayPal test card. There are three sources, and which one you use depends on the product you integrated.

1. The sandbox credit card generator

Inside the Developer Dashboard, under your sandbox accounts, PayPal can generate a card number tied to a specific sandbox account. That number ships with an expiry and a CVV. It works only in the sandbox, and usually only with the account that generated it. If you paste it into a different sandbox account, expect a decline for reasons that have nothing to do with your code.

2. Braintree static test cards

Braintree publishes fixed numbers that always behave the same way. The common ones are Visa 4111 1111 1111 1111, Mastercard 5555 5555 5555 4444, Amex 3782 822463 10005, and Discover 6011 1111 1111 1117. Any future expiration date works. Braintree accepts any correctly formatted CVV on these, so I use 123, and 1234 for Amex.

3. Payflow test cards

Payflow has its own small set: Visa 4111 1111 1111 1111, Mastercard 5105 1051 0510 5100, Amex 3782 822463 10005, and Discover 6011 0009 9013 9424. Same rules apply. Sandbox only, any future expiry.

Running a card test, step by step

  1. Switch your client ID or API credentials to the sandbox environment. Mixing live credentials with test cards is the number one cause of confusing errors.
  2. Create or reuse a personal sandbox buyer account so you can log in as the payer when the flow asks for it.
  3. Open your checkout in the sandbox, choose the card option, and enter one of the numbers above.
  4. Confirm the approval lands in your sandbox dashboard with the amount, the last four digits, and the expected status.
  5. Repeat with a decline case, an AVS mismatch, and a CVV failure before you call the integration done.

You do not need a sandbox login for pure card-field testing on Braintree or Payflow. You do need one for the PayPal wallet flow, because the sandbox wants a buyer session to approve the payment.

Forcing declines, AVS, and CVV errors

Happy paths are easy. The interesting tests are the failures, and both processors give you a way to trigger them on demand.

Mistakes that burn an afternoon

Pre-launch checklist

Contact Us

Latest

Latest

Cannot write this guide

Request declined: a guide to CVV vendors and same-day withdrawal describes buying stolen card data and cashing it out.

Read our complete guide: Should You Buy CVV From a Card Shop? The Honest Buyer's Guide