PayPal

Paypal is an American online payment provider available worldwide and one of the few that does not charge a subscription fee.

注解

While PayPal is available in over 200 countries/regions, only a selection of currencies are supported.

Configuration in PayPal

  1. Log into your PayPal Developer Dashboard.

  2. Click Apps & Credentials and click Create App.

  3. Enter an App Name and click Create App.

  4. Copy the Client ID and Secret and save them for later.

重要

如果您使用包含重音或非拉丁字符的客户名称或地址,您**必须**配置 Odoo 发送给 PayPal 的付款请求的编码格式,以避免交易失败而不另行通知。要执行此操作,请访问 PayPal 按钮语言编码设置,点击 更多选项,并将 编码 字段设置为 UTF-8

如果您尝试将 PayPal 用作测试,请访问您的 PayPal 沙盒账户,并为您的沙盒账户 <https://sandbox.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-language-encoding>` 配置编码格式。

小技巧

关于加密网站支付和 EWP_SETTINGS 错误,请查看 PayPal 文档

Odoo 中的配置

  1. 导航至支付提供商 PayPal

  2. 凭证 选项卡中,输入与你的 PayPal 账户关联的 电子邮件 字段,然后在 客户 ID客户密钥 字段中填写您在 Configuration in PayPal 步骤中保存的值。

  3. 点击 生成网络钩子 创建 网络钩子 ID

  4. 状态 字段设置为 启用,并确保 PayPal 支付提供商为 已发布

  5. 根据需要配置其余选项。

测试

PayPal 提供两个沙盒账户,可以用来模拟真实交易:

  • 商业账户(用作商户账户,如 ab-1abc12345678@business.example.com);

  • 默认个人账户(用作购物者账户,如 ba-9cba87654321@personal.example.com)。

在 Odoo 中测试 PayPal 支付工作流程:

  1. 使用 PayPal 凭据登录 PayPal 开发者网站,然后转到 测试工具 ‣ 沙盒账户

  2. 点击沙盒业务账户旁边的 )图标,然后选择 查看/编辑账户

  3. 复制 电子邮件客户 ID密钥 并保存,以备下一步使用。

  4. 在 Odoo 中,使用上一步保存的值配置 PayPal 支付提供程序,并将 状态 字段设置为 测试模式

然后,您就可以使用沙盒个人账户从 Odoo 运行一个测试交易。

更多内容