[TOC]
## (一)必備資料
1、經過備案的域名
2、服務器
3、支付寶商戶號(或者支付寶個人號申請支付)
## (二)費率是多少?
扣除費率 0.6%,也就是1000元6元錢,最低每1筆1分錢!
## (三)搭建環境工作
>第一步:我們先從 `GitHub` 官方下載一個 `ThinkPHP3.2.3` 源碼,網址如下:https://github.com/top-think/thinkphp
第二步:利用 `phpStudy` 搭建環境
第三步:命名虛擬域名為 `tp3`,例如 `http://tp3/Pay/`
第四步:更改根目前下的`.htaccess`文件,正確如下:
```
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
```
它的目的是,隱藏 `index.php` 否則,我們訪問的是`http://tp3/index.php/`
好了,環境搭建好了,我們訪問 `http://tp3/`

環境搭好了,開工!