There are two modes for exploring the Speed platform APIs: test and live.
Requests made in test mode validate request arguments, simulate live environment behavior, and enforce rate limits in the same way that requests made in live mode do.
You can use the data in test mode to test your integration before accepting live payments.
We encourage you to use the test environment, perform quality assurance, and test your product by simulating real-world usage.
Test mode allows you to simulate the following scenarios:
- Make successful payments by a lightning network or on-chain wallet.
- Make multiple payments through a payment link.
- Test multiple partial on-chain payments.
- Test authentication using different API keys.
To switch between modes, use the appropriate key for that mode when performing a request. Test secret API keys are always prefixed with sk_test, while production keys are prefixed with sk_live. On the Speed web application>Developers, you can find and manage your API keys.
Endpoints do not differ between the test and live modes. Requests made with test mode credentials never result in a real transaction or transfer of funds and have no consequences in your live environment. Transactions and entities created in the test mode do not appear in the live mode. After thoroughly testing your integration, you can switch to live mode and start accepting payments from customers. As a result, you can enjoy an authentic user experience without any risk.
You can test payments by utilizing Speed web application payment resources in test mode. Alternatively, you can achieve this by calling these payment resource APIs with the test mode API key.
Let’s assume a scenario where you want to check your integration of one of our resources, the checkout link. All you have to do is create a checkout link in Speed test mode. Now, make a lightning testnet payment or a partial on-chain testnet payment.
Once done, you can retrieve the same checkout link and check its status. You will notice that your actions have affected the test mode data on your Speed account. This implies that your checkout link resource integration was successful.
There are lots of Lightning and Bitcoin wallets available for this. Picking the right one is a matter of personal preference, but the following references might help.
LN.dev is a lightning network testnet application developed by Speed. This allows you to manage the test mode funds of all your Speed accounts on a single web interface. There are no additional connection steps other than basic sign-up. Just sign in and send or receive test payments.