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账户复制凭证,并粘贴至**凭证**选项卡下的相关栏。

重要

If you are trying Adyen as a test, with an Adyen test account, head to Accounting ‣ Configuration ‣ Payment Acquirers. There, click on Adyen, enable Test Mode and enter your credentials in the Credentials tab.

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 acquirer 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)。

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