Adyen

`Adyen <https://www.adyen.com/>`_是一家荷兰公司,提供多种在线付款方式。

注解

Adyen works only with customers processing more than 10 million annually or invoicing a minimum of 1.000 transactions per month.

配置

凭据选项卡

Odoo需要您的**API凭证**与您的Adyen账户连接,包括:

您可以从Adyen账户复制凭证,并粘贴至**凭证**选项卡下的相关字段。

重要

如果您使用Adyen*测试账户*进行测试,转到:menuselection:会计-->配置-->支付服务提供商,点击:guilabel:Adyen,启用:guilabel:测试模式,并在:guilabel:`凭证`选项卡中输入凭证。

API密钥和客户端密钥

In order to retrieve the API Key and the Client Key, log into your Adyen account, go to Developers ‣ API Credentials.

  • If you already have an API user, open it.

  • 如果还没有 API 用户,请单击**创建新凭证**。

进入 服务器设置 ‣ 认证 并复制或生成您的 API 密钥。复制 API 密钥时要小心,因为如果不生成一个新的密钥,以后将无法获取该密钥。

转到:menuselection:客户端设置-->谁,输入或生成**客户端密钥**,在此处,您可以 allow payments to be made from your website

HMAC密钥

要检索HMAC密钥,您需要配置`标准通知`反射API,登录您的Adyen账户,转到:menuselection:开发人员-->反射API-->添加反射API-->添加标准通知

配置反向API。

在:menuselection:一般-->服务器配置--> URL`中,输入您的服务器地址,后接/payment/adyen/notification`。

输入通知URL。

转到:menuselection:安全-->HMAC密钥-->创建。复制密钥时应格外小心,因为如果不生成新密钥,将无法再次获取密钥。

创建并保存HMAC密钥。

须保存反向API,以完成创建。

API URLs

所有 Adyen API URL 均包含由 Adyen 生成的特定客户区域前缀。配置 URL 的步骤如下:

  1. 登录您的 Adyen 帐户,然后转到 开发者 ‣ API URLs

  2. Copy the Prefix for your live Customer area (i.e., data center) and save it for later.

    Copy the prefix for the Adyen APIs
  3. In Odoo, navigate to the payment provider Adyen.

  4. In the Checkout API URL field, enter the following URL and replace yourprefix with the prefix you previously saved: https://yourprefix-checkout-live.adyenpayments.com/checkout

  5. In the Recurring API URL field, enter the following URL and replace yourprefix with the prefix you previously saved: https://yourprefix-pal-live.adyenpayments.com/pal/servlet/Recurring.

注解

If you are trying Adyen as a test, you can use the following URLs instead:

  • Checkout API URL: https://checkout-test.adyen.com

  • Recurring API URL: https://pal-test.adyen.com/pal/servlet/Recurring

Adyen帐户

允许特定来源付款

要允许从您的网站发起付款,请按照:ref:adyen/api_and_client_keys`中的步骤,导航至您的API用户,转到:menuselection:`添加允许源,然后添加付款URL(托管Odoo实例的服务器的URL)。

允许从特定域发起的付款。

暂挂信用卡

Adyen允许您手动捕获金额,而非立即捕获金额。

To set it up, enable the Capture Amount Manually option on Odoo, as explained in the payment providers documentation.

然后,打开您的Adyen商户账户,转到:menuselection:账户-->设置,将**捕获延迟**设置为**手动**。

Adyen中的捕获延迟设置

小心

  • 如果您将Odoo配置为手动捕获金额,请确保将Adyen中的**捕获延迟**设置为**手动**,否则,在Odoo中,交易将在授权状态下被阻止。

  • Odoo不支持捕获部分金额。请注意,如果您从Adyen界面捕获部分金额,Odoo会将其管理为全额捕获。

注解

7天后,如果交易尚未捕获,客户有权**撤销**。

参见

在线支付