简体   繁体   中英

How to hide stripe javascripts on webpage

How do I hide stripe js files being shown in the view-source ? I want to hide the name of the payment system company I am using from the competitors.

The stripe js files and javascripts are showing up on my checkout webpage.

<script src="https://js.stripe.com/v3/"></script>

var stripe = Stripe('pk_test_TYooMQauvdEDq54NiTphI7jx');

var elements = stripe.elements();

I was thinking to use their php api, will that do the job ? Any solution or method is appreciated.

it is not possible to hide client side code, and it is not a big deal if users find out about the payment system you are using, as for stripe "security is their concern not yours".

but one important thing is that you have to validate everything in the backend part of your app. that is your concern.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM