WeChat Pay API Certificate Security

WeChat Pay documents. API certificate security should be placed in a directory with access control. This directory generally refers to
take ThinkPHP as an example

3API

1.web;
Php
Apr.24,2022

for example, the root directory of your site is / home/www/yoursite , then the API certificate had better not be placed in this directory (even if you want to put it, it can only be placed in a directory other than public ), but can be placed in other directories that have nothing to do with web sites . Use the system absolute path reference in the code.

Menu