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所需的商户账户代码。
API密钥:网站服务用户的API密钥。
客户密钥:网站服务用户的客户密钥。
HMAC Key:反射API的HMAC密钥。
结账API URL:结账API端点的基URL。
经常性API URL:经常性API端点的基URL。
您可以从Adyen账户复制凭证,并粘贴至**凭证**选项卡下的相关栏。
重要
If you are trying Adyen as a test, with an Adyen test account, head to Adyen, enable Test Mode and enter your credentials in the Credentials tab.
. There, click onAPI密钥和客户密钥¶
In order to retrieve the API Key and the Client Key, log into your Adyen account, go to
.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-->添加标准通知
。

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

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

须保存反向API,以完成创建。
API URLs¶
所有 Adyen API URL 均包含由 Adyen 生成的特定客户区域前缀。配置 URL 的步骤如下:
登录您的 Adyen 帐户,然后转到
。Copy the Prefix for your live Customer area (i.e., data center) and save it for later.
In Odoo, navigate to the payment acquirer Adyen.
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
.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)。
