Skip to main content
Version: v4

Sandbox Environment

TapTap IAP supports testing payment integration in the sandbox environment.

Test Flow

We recommend testing IAP in the following order:

  1. Add a sandbox test account in the Developer Center.
  2. Sign in to the game with the sandbox test account, and start an IAP purchase in your test build.
  3. In Checkout, select Credit/Debit Card or a saved test card as the payment method.
  4. Use the sandbox card numbers below according to the card payment provider used by the current order.

1. Set Up Sandbox Accounts

Go to the Developer Center and follow these steps to add sandbox test accounts:

2. Start an IAP Test

Sign in to the game with an added sandbox account in your test build, then start an IAP purchase. After entering Checkout, select the payment method you want to test.

3. Confirm the Credit/Debit Card Provider

The Credit/Debit Card option shown in Checkout uses a card payment provider based on the product currency and server-side configuration. By default, SGD, HKD, USD, EUR, GBP, JPY, AUD, CAD, and NZD use Alipay+ Card. Other card-supported currencies use Stripe Card. The actual behavior follows the live server configuration.

4. Use Stripe Card Test Numbers

Stripe Card does not support payments below $0.5. When testing products, make sure the product price is at least $0.5. For more test numbers and scenarios, see the Stripe documentation.

For payment testing, use any future expiration date. CVC and other form fields can be any valid value.

Common card numbers:

Test scenarioCard numberNotes
Successful payment4242424242424242Visa
Successful payment5555555555554444Mastercard
Generic decline4000000000000002Returns card_declined
Insufficient funds4000000000009995Returns insufficient_funds

5. Use Alipay+ Card Test Numbers

Alipay+ Card test numbers are from the Alipay+ / Antom test card documentation. During payment testing, CVC, postal code, and expiration date can be any valid value. If the payment page asks for the first two digits of the payment password, enter any two digits.

Common card numbers:

Test scenarioCard numberNotes
Successful payment4054695723100768Global Visa
Successful payment5162774114974622Global Mastercard
Successful payment9490220011669217Korea Hyundai
Error simulation4054692760174822Global Visa
Error simulation5162770472561357Global Mastercard

You can also simulate other errors in the following ways:

  • Use an invalid month, such as 13, to simulate an invalid expiration month.
  • Use a two-digit CVV, such as 99, to simulate a CVC error.
  • Set the payment amount to 11, 1100, or 1111 to simulate a risk control failure.
  • Use card number 4035501000000008 to simulate a 3D Secure frictionless scenario.