Due to business needs to ensure the security of user balance usage, it is hoped that the SMS verification code can be used for secondary confirmation when spending the balance.
You can turn on the secondary confirmation of SMS verification code for balance consumption through the following settings:
# Opening balance consumption requires SMS verification code
["**System Parameter Configuration**"](https://www.yuque.com/apifm/doc/kcncad)
Set switch type system parameters:
**Parameter type:** Switch parameter
**Parameter name:**balance_pay_sms_checkAfter configuring this system parameter, the balance consumption system will forcefully verify the SMS verification code. If the interface does not transmit the verification code parameters or the incoming SMS verification code is incorrect, the payment will not be completed.
# Make sure the current user has bound a mobile phone number
In ["Frontend API docs"](#), by calling the user details interface, read whether the user has set a mobile phone number (mobile field), because only when the mobile phone number is bound, the SMS verification code can be sent and obtained.
If the user does not have a mobile phone number yet, please first complete the binding of the mobile phone number of the currently logged in user through the relevant interface for binding mobile phone numbers in the interface document.
# Enable and configure the SMS channel
To send an SMS verification code, you need to have purchased the SMS channel supported by "apifm" and configured your SMS channel in the "apifm" background;
In the left menu "Factory settings" --> "Module management", find the "SMS verification code" module. After enabling it, press F5 to refresh. You can see the relevant menu of SMS verification code settings in the left menu. Follow the system guidelines to complete the configuration of the SMS verification code.
#Send SMS verification code
In ["Frontend API docs"](#), by calling the SMS verification code sending interface, the verification code is triggered to be sent. The "apifm" will send a random SMS verification code to the user's bound mobile phone number through the SMS channel you configured.
For the convenience of testing, you can use the 13500000000 mobile phone number for testing. With this mobile phone number, the system will not send real text messages, but will directly return success. You can directly develop the program and complete the entire usage process.
# Use verification code to spend balance
## Use balance to pay for orders

Balance payment order interface, parameterssmsCodeJust enter the SMS verification code received on your mobile phone.