Test Anychain Onramp

Test your on-ramp integration

Testing the Anychain Onramp in Sandbox

The sandbox flow is similar to that of the production except for two things, price quotes and KYC. The price given in the sandbox environment is fixed to a small amount. If the user does not have an existing MoonPay or Stripe account, they will have to complete the mocked KYC process. This will NOT require a valid SSN or credit card, however they will have to provide a valid email and phone number to get past security checks.


The Anychain Onramp SDK will open a popup in which you can input the desired amount of funds to onramp. Since this is a test version, you will be acquiring test tokens with a test credit card. NOTE: you will not be billed for this test on-ramp transaction.

To add this to your application, you only need to integrate the Anychain Onramp button and enable the testing mode by setting a sandbox boolean to true. This is shown below:

import { openHallidayOnramp } from "halliday-sdk";

openHallidayOnramp(
  "HALLIDAY_PUBLIC_API_KEY",
  "VERIFIER_CLIENT_ID",
  undefined, // optional in_game_player_id
  sandbox=true // set sandbox boolean to be true to ensure the on-ramp is in test mode
);

Stripe Onramp KYC Mock Values

For testing Stripe onramp, please use these mock values for KYC:

KYC RequirementMock Value
SSN000-00-0000
Credit Card Number4242 4242 4242 4242
Credit Card Expiration08/30 (any future date)
Email Verification Code000000 (all zeros)
CVC123

Moonpay Onramp KYC Mock Values

For testing Moonpay onramp, please use these mock values for KYC:

KYC RequirementMock Value
SSN123-12-3123
Credit Card Number4242 4242 4242 4242
Credit Card Expiration08/30 (any future date)
Email Verification Codereceive from email
Checkout ConfirmationCheckout1!
CVC123

Considerations when Testing MoonPay

MoonPay has several security features in place to detect and prevent fraud; given the nature of testing, it is possible some activities may be incorrectly tagged as fraudulent. To that end, we recommend you follow these best practices as you test your Anychain Onramp integration:

  • Users must not share MoonPay accounts or devices in production.
  • Fraud alerts / issues may occur if Moonpay suspects a user has multiple Moonpay accounts; please keep this in mind to the extent any testers already have a preexisting Moonpay account. Ensure that each tester uses a unique identifier (email, phone number, etc.) that has not been previously associated with MoonPay. This helps to avoid flags related to duplicate accounts.
  • Avoid credit cards. Use debit cards when completing purchases.
  • Sandbox testing may have outdated code, so it is possible the same bugs won’t be found in production. When testing in sandbox, you’re allowed to create multiple accounts with completely made up KYC data. Additional sandbox specific testing guidelines can be found here.
  • Do not use test cards in production or it will result in your account automatically getting blocked.
  • Do not use the same MoonPay account across sandbox and production environments or your account will get automatically blocked.