WeChat Mini Programs calls WeChat Pay
wx.requestPayment (obj)
this function needs sign authentication, and sign needs WeChat Pay"s key. Is it safe to write the key directly to Mini Program"s JS?
/ / Baidu search found that Mini Program used to have Bug, to get any Mini Program source code. It is very dangerous if the key is exposed.
Q: is it safe? Does it have to be implemented on the server side? It is mainly tedious. I read other people"s cases, all of which were written in Mini Program"s JS.