> 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/magento1.md).

# Magento1

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

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

### 安装插件

* 下载插件：<https://github.com/Asiabill/asiabill_plugin_magento1>
* 解压后把<mark style="color:orange;">`app`</mark>和<mark style="color:orange;">`skin`</mark>两个目录上传到站点根目录。
* 清除magento缓存：<mark style="color:purple;">System</mark> -> <mark style="color:purple;">Cache Management</mark>

![](/files/BVLN7l4scj2hSKoldiIn)

### 插件设置

进入后台<mark style="color:purple;">Stores</mark> -> <mark style="color:purple;">Configuration</mark> -> <mark style="color:purple;">Sales</mark> -> <mark style="color:purple;">Payment Methods</mark> 可以看到：<mark style="color:orange;">Asiabill Creditcard</mark>

![](/files/dL9nmSmzkviXFsH9xGmw)

* Version：版本信息
* Enabled：是否开启
* Title：显示支付方式名称
* Mode：模式
  * test：测试
  * live：正式
* Test Mer No、Test Gateway No、Test Sign Key：测试账户信息，测试模式下使用，默认已设置
* Mer No、Gateway No、Sign Key：账户信息，非测试模式下使用
* Checkout Model：支付模式
  * In-page Checkout ：内嵌表单模式
  * Hosted Checkout：托管支付模式
* Elements Style：内嵌表单样式，单行/双行
* Order status when success：交易成功更新订单状态
* Order status when failure：交易失败更新订单状态
* Order status when pending：待处理订单更状态
* Payment from applicable countries：适用支付国家
* Payment from Specific countries：选择国家
* Sort order：排序

### 信用卡支付

{% tabs %}
{% tab title="站内支付" %}

* 在购物网站选择商品到结算页面&#x20;
* 选择<mark style="color:orange;">信用卡支付</mark> ，支付页面将内嵌到商户支付列表中，有利于支付体验
* 直接在商户网站输入卡信息，点击<mark style="color:orange;">Continue</mark>按钮

![](/files/2ttkBY38C9SYytCjZcur)

* Place Order

![](/files/VLxyagw6C8aXMyZkh9uh)
{% endtab %}

{% tab title="跳转支付" %}

* 在购物网站选择商品到结算页面&#x20;
* 选择<mark style="color:orange;">信用卡支付</mark>&#x20;

<figure><img src="/files/PwypoRAIDUmTRi8gvQzK" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/cP2lEPFGDvjaykQQS1qT" alt=""><figcaption></figcaption></figure>

* 网站将重定向到<mark style="color:orange;">AsiaBill支付页面</mark>，输入卡信息，完成支付

<figure><img src="/files/E9SGLVTcA5WQLFQzoao3" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

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

### 本地支付

* Ideal
* Klarna
