当前位置:网站首页>Service charge and time setting code sharing involved in crmeb withdrawal process
Service charge and time setting code sharing involved in crmeb withdrawal process
2022-06-25 12:28:00 【Procedure 15528175269】
Some businesses use CRMEB In the process of operating e-commerce platform , It involves the payment of commission reward and cash withdrawal , When the membership is large and the number of commissions is large , If it is a manual payment , So much work , When it comes to human capital , If the platform looks for the bank to make payment in batches , The bank will also charge a handling fee , Some e-commerce merchants find banks to pay in batches , After a fixed EXCEL Submit the template to the bank , Some banks may charge a service fee of several yuan per transaction , Every day if there are hundreds of orders in time , Then the transfer cost of this piece is very high
Moreover, some users have no cash withdrawal threshold ,1 Yuan or 10 Yuan will initiate cash withdrawal to members , Then the cost is on the high side , The following content is the shared content and partial code of user withdrawal function for developing e-commerce system
How to deal with this problem ?
Yes CRMEB Develop a small function , Set the function of withdrawal service fee
1. The way 1: Set a handling charge of a few percent of each withdrawal .
2. The way 2: It can also be set to deduct a service charge of several yuan for each withdrawal platform
In addition, the e-commerce platform sometimes also wants to set the Commission withdrawal time , at present CRMEB There's nothing in the , Then it is required to set the withdrawal time period ,
For example, set the days of the week that can be raised ? What time is the withdrawal time of that day ? On the one hand, these designs can enable the financial department to centralize the disposal , It is also convenient to manage the withdrawal time uniformly , Centralized audit
In addition, if the system development has set up automatic cash withdrawal to account , Think about it based on platform technology , Cash withdrawal during working hours on weekdays is the best , In case the system presents bug Or other account disclosure problems , Cash withdrawals have been funded , The platform can't audit and trace .
therefore CRMEB It is required to set the function of withdrawal time
1. Withdrawal can be set on the days of each week , For example, week 1, Zhou 3 And so on.
2. The withdrawal period can be set , For example, in the morning 10:00 In the afternoon 5:00
When the user initiates withdrawal , There will be another problem , Some users initiate multiple withdrawals a day , This will also increase the workload of cash withdrawal
How to deal with the problem that the same user initiates multiple withdrawals every day ?
Be able to handle : Develop the function of limiting the number of withdrawals per day , This limits the number of users per day
Here are some crmeb Commission fee for withdrawal , The program code of withdrawal time and withdrawal frequency
$hour = date(‘H’);
if($cashTime)
{
if(!in_array($hour, explode(‘,’, $cashTime)))
{
return app(‘json’)->fail($cashMsg ? $cashMsg: ‘ Not within the time allowed for withdrawal ’);
}
}
if( UserExtract::where(‘uid’, $user[‘uid’])->where(‘add_time’, ‘>=’, strtotime(date(‘Y-m-d’)))->count() >= $cashCount ){
return app(‘json’)->fail(‘ Only cash withdrawal is allowed every day ’ . $cashCount . ‘ Time !’);
}
// Service Charge
$store_fee = bcdiv(bcmul($data[‘money’],$store_fee_rate,2),100,2);
// Actual amount received
$realMoney = bcsub($data[‘money’], $store_fee, 2);
$time = time();
边栏推荐
- Understanding and construction of devsecops and Devops
- Install MySQL client
- How to open an account for trading futures Shanghai nickel products online
- confluence7.4.X升级实录
- 20. MVVM command binding of WPF
- Controllable character image synthesis based on attribute decomposition and Gan reproduction
- What is principal component analysis? Dimension reduction of classical case analysis variables
- R语言使用nnet包的multinom函数构建无序多分类logistic回归模型、使用epiDisplay包的lrtest函数执行多个模型似然比检验对比两个模型的性能是否有差异
- 2022 meisai e topic ideas sharing + translation
- An article clearly explains MySQL's clustering / Federation / coverage index, back to table, and index push down
猜你喜欢
plt. GCA () picture frame and label
An article clearly explains MySQL's clustering / Federation / coverage index, back to table, and index push down
Dark horse shopping mall ---3 Commodity management
15. Notes on the button style of WPF
揭秘GaussDB(for Redis):全面對比Codis
Rank sum ratio comprehensive evaluation method for common models in mathematical modeling
A set of automated paperless office system (oa+ approval process) source code: with data dictionary
Architects reveal the difference between working in Alibaba, Tencent and meituan
20、wpf之MVVM命令绑定
Pd1.4 to hdmi2.0 adapter cable disassembly.
随机推荐
Arm V7 LDR STR memory access
【OceanBase】OceanBase简介及其与MySQL的比较
Upgrade opsenssh to 8.8p1
[on]learning dynamic and hierarchical traffic spatiotemporal features with transformer
How can we differ LEFT OUTER JOIN vs Left Join [duplicate]
Black Horse Chang Shopping Mall - - - 3. Gestion des produits de base
R language uses GLM function to build Poisson logarithmic linear regression model, processes three-dimensional contingency table data to build saturation model, and poisgof function of epidisplay pack
An article clearly explains MySQL's clustering / Federation / coverage index, back to table, and index push down
MYSQL中对复杂JSON的更新
Flutter common commands and problems
New and old cluster migration of Minio data
2022 meisai D topic ideas sharing + translation
2022 meisai topic C idea sharing + translation
Kotlin基础
揭秘GaussDB(for Redis):全面對比Codis
ECSHOP upload video_ ECSHOP video list, video classification, video related product guide
PyCaret 成功解决无法从‘sklearn.model_selection._search‘导入名称“_check_param_grid”
Windows下MySQL的安装和删除
20、wpf之MVVM命令绑定
ARM V7 连续加载/存储