Enable Test Mode
Developers can turn on Test Mode to test both fiat-to-crypto transactions and crypto-to-crypto transactions on supported testnet chains. It is possible to test both at the same time or separately.
By setting testMode
to true
for Buy With Fiat, you can enable test experiences for our underlying providers (Stripe, Kado, and Transak).
For Coinbase onramp, you can turn on "Mocked mode" when launching the Onramp experience.
At the bottom of the Onramp modal where it says "Secured by Coinbase", click 10 times on the word "Secured." This will navigate you to Onramp's Debug Menu. There, navigate to the Actions tab click on the toggle for "Enable Mocked Buy and Send." You can now exit the Debug Menu and proceed with mock buys and sends. Remember to click on the "Enable Mocked Buy and Send" toggle once you are done to enable actual buys and sends.
For other providers, you can use the following information when using any provider in test mode:
For Stripe testing, you can view more test cards here.
For Transak testing, you can view detailed information here.
For Kado testing, you can view detailed information here.
Buy With Crypto test mode will show only Testnets and native test currencies. If you have a custom that you would like supported in test mode, please reach out to us. You can see a list of supported testnets on the thirdweb Chainlist page.