Stripe¶
Stripe 是一家总部位于美国的在线支付解决方案提供商,允许企业接受**信用卡**和其他支付方式。
使用 Odoo 创建您的 Stripe 帐户¶
凭证获取方式取决于您的托管类型:
导航到支付提供商 Stripe 并点击 连接 Stripe。
完成设置过程,并在 Stripe 向您发送确认电子邮件时确认您的电子邮件地址。
在流程结束时,点击 同意并提交。如果已提交所有要求的信息,您将被重定向到 Odoo,并启用支付提供商。
导航到支付提供商 Stripe 并点击 连接 Stripe。
完成设置过程,并在 Stripe 向您发送确认电子邮件时确认您的电子邮件地址。
流程结束时,点击:guilabel:
同意并提交
;然后您将被重定向到 Odoo 中的支付提供商 Stripe。Select a payment journal.
將 狀態 欄位設為 啟用。
小訣竅
要使用现有的 Stripe 账户,激活开发者模式 并 手动启用 Stripe。然后,您可以 填写凭证,生成网络钩子,并启用支付提供商。
您还可以使用 測試模式 测试 Stripe。要执行此操作,首先,登录您的 Stripe 仪表板 并切换到**测试模式**。然后,在 Odoo 中,激活开发人员模式,导航至支付提供商 Stripe,用测试密钥填写您的 API 凭据,并将 状态 字段设置为 测试模式。
填写您的凭证¶
如果连接 Stripe 账户需要您的 API 凭据,请按以下步骤操作:
访问 Stripe <https://dashboard.stripe.com/account/apikeys>``_ 上的
API 密钥 `页面,或登录 Stripe 仪表板并访问 :menuselection:`开发者 --> API 密钥
。在 标准密钥 部分,复制 可发布的密钥 和 密钥 并保存备用。
在 Odoo 中,导航至支付提供商 Stripe。
在 凭证 选项卡中,使用之前保存的值填写 可发布密钥 和 秘钥 字段。
生成反射API¶
如果与 Stripe 账户连接需要您的 Webhook 登录密钥,您可以自动或手动创建 Webhook。
Make sure your Publishable and Secret keys are filled in, then click Generate your Webhook.
转到 Stripe 上的 Webhooks 页面,或登录 Stripe 仪表板并转到:menuselection:
开发者 --> 网络钩子
。在:guilabel:
托管端点
部分,点击 添加端点。然后,在 端点网址 字段中输入 Odoo 数据库的网址,后跟/payment/stripe/webhook
,例如,https://yourcompany.odoo.com/payment/stripe/webhook
。点击表格底部的 选择活动,然后选择以下活动:
in the Charge section: charge.refunded and charge.refund.updated;
in the Payment intent section: payment_intent.amount_capturable_updated, payment_intent.succeeded and payment_intent.payment_failed;
in the Setup intent section: setup_intent.succeeded.
点击 添加活动。
点击 添加端点,然后点击 揭示 并保存您的 :guilabel:`签署秘密`以备后用。
在 Odoo 中,导航至支付提供商 Stripe。
在 凭证 选项卡中,在 网络钩子签署秘密 字段中填写之前保存的值。
備註
您可以选择其他事件,但 Odoo 目前不会处理这些事件。
启用本地付款方式¶
Local payment methods are payment methods that are only available for specific providers and for specific countries and currencies.
Odoo supports the following local payment methods for Stripe:
Bancontact
EPS 易辦事
giropay
iDEAL
Przelewy24 (P24)
To adapt the list of enabled payment methods, go to the Configuration tab and edit the list of Supported Payment Icons.
備註
If a payment icon record does not exist in the database and its related local payment method is listed above, it is automatically enabled with Stripe.
如果本地付款方式未列出,则不支持此付款方式,也无法启用。
啟用 Apple Pay¶
要允许客户使用 Apple Pay 按钮支付电子商务订单,请转至 配置 选项卡,启用 允许快速结账 `,然后点击 :guilabel: 启用 Apple Pay`。