> For the complete documentation index, see [llms.txt](https://asiabill.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://asiabill.gitbook.io/docs/cha-jian-ping-tai/kai-yuan-zi-jian-zhan/prestashop.md).

# Prestashop

请先阅读[开源自建站说明](/docs/cha-jian-ping-tai/kai-yuan-zi-jian-zhan.md)

{% hint style="info" %}
插件版本：v1
{% endhint %}

### 安装插件

#### Prestashop1.6

1. 下载插件：<https://github.com/Asiabill/asabill_plugin_prestashop>
2. 解压后把<mark style="color:orange;">`1.6`</mark>目录下的<mark style="color:orange;">`asiabill`</mark>压缩成zip
3. 后台：<mark style="color:purple;">Modules</mark> -> <mark style="color:purple;">Modules</mark>
4. 点击添加新模块，选择<mark style="color:orange;">asiabill.zip</mark>

![](/files/DvOdllFBZJOvkUWvlqDe)

#### Prestashop1.7

1. 下载插件：<https://github.com/Asiabill/asabill_plugin_prestashop>
2. 解压后把<mark style="color:orange;">`1.7`</mark>目录下的<mark style="color:orange;">`asiabill`</mark>压缩成zip
3. 后台：<mark style="color:purple;">模块</mark> -> <mark style="color:purple;">模块和服务</mark>
4. 点击上载模块，选择<mark style="color:orange;">asiabill.zip</mark>

![](/files/Qo8MoGeVkjr5YNOTeyn1)

### 插件设置

* Mode：交易模
  * test：测试
  * live：正式
* Mer No、Gateway No、Signkey：账户信息，非测试模式下使用
* Test Mer No、Test Gateway No、Test Signkey：测试账户信息，测试模式下使用，默认已设置
* Order State：创建订单状态
* Succeed State：成功订单状态
* Fail State：失败订单状态
* Wait State：待处理订单状态
* Display：打开方式
  * iFrame：内嵌
  * Redirect：重定向
* iframe height(px)：内嵌高度

### 信用卡支付

* 在购物网站选择商品到结算页面&#x20;
* 选择<mark style="color:orange;">信用卡支付</mark>&#x20;
* 网站将重定向到<mark style="color:orange;">AsiaBill支付页面</mark>，输入卡信息，完成支付

<div align="center"><img src="/files/2kyxXPmTba6gGOULhkEn" alt=""></div>

测试卡号：[查看](/docs/cha-jian-ping-tai/kai-yuan-zi-jian-zhan.md)
