条纹¶
`Stripe <https://stripe.com/>`_是一家美国在线支付解决方案提供商,允许企业接受**信用卡**和其他支付方式。
将您的Stripe账户与Odoo关联¶
获取凭证的方法取决于您的主机类型:
转到**电子商务**或**销售**应用程序,点击引导横幅上的*激活Stripe*或*设置付款*按钮。
填写所需信息,并提交表格。
Stripe向您发送确认电子邮件后,请确认电子邮件地址。
At the end of the process, you are redirected to Odoo. If you submitted all the requested information, you are all set and your payment acquirer is enabled.
Your can continue to 启用本地付款方式.
小技巧
To use your own API keys, activate the Developer mode and enable Stripe manually. You can then Fill in your credentials, generate a webhook and enable the payment acquirer.
转到**电子商务**或**销售**应用程序,点击引导横幅上的*激活Stripe*或*设置付款*按钮。
填写所需信息,并提交表格。
Stripe向您发送确认电子邮件后,请确认电子邮件地址。
At the end of the process, you are redirected to the payment acquirer Stripe on Odoo.
Enable the payment acquirer.
已设置完成,您可以继续:ref:
stripe/local-payment-methods
。
小技巧
To connect your Stripe account after the onboarding is already completed, go to
and click on the Connect Stripe button.重要
如果您测试Stripe(在**测试模式**下),请将**状态**更改为*测试模式*。建议在Odoo测试数据库而非您的主数据库执行此操作。
填写您的凭证¶
如果需要您的**API凭证**,以便与Stripe账户连接,则您须填写以下凭证:
Publishable Key: The key solely used to identify the account with Stripe.
Secret Key: The key to sign the merchant account with Stripe.
反射API签名密钥:在Stripe账户中启用反射API时,您须设置此签名密钥,以验证Stripe向Odoo发送的消息。
要检索可发布密钥和密钥,请执行以下操作`link to your API keys <https://dashboard.stripe.com/account/apikeys>`_,或登录Stripe仪表板,并转到:menuselection:开发人员-->API密钥-->标准密钥
。
生成反射API¶
如果需要您的**反射API签名密码**,以便与Stripe账户连接,您可以自动或手动创建反射API。
Make sure your Publishable and Secret keys are filled in, then click on the Generate your Webhook button.
Visit the webhooks page on Stripe, or log into your Stripe dashboard and go to . Then, click on Add endpoint in your Hosted endpoints and insert the following data into the pop-up form:
- In the Endpoint URL, enter your Odoo database’s URL followed by
/payment/stripe/webhook
。例如:https://yourcompany.odoo.com/payment/stripe/webhook
At the end of the form, you can Select events to listen to. Click on it and, in the Checkout section, select checkout.session.completed.
注解
可以选择其他活动,但Odoo当前不处理其他活动。
When you click on Add endpoint, your Webhook is configured. You can then click on reveal to display your signing secret.
启用本地付款方式¶
本地付款方式仅适用于特定商户和客户所在国家和币种。
Odoo支持以下本地付款方式:
Bancontact
EPS
giropay
iDEAL
Przelewy24 (P24)
To enable some of these local payment methods with Stripe, list them as supported payment icons. To do so, go to
and add the desired payment methods in the Supported Payment Icons field. If the desired payment method is already listed, you do not have anything to do.
注解
如果数据库中没有付款图标记录,且相关本地付款方式已经列出,则视为Stripe已启用。
如果本地付款方式未列出,则不支持此付款方式,也无法启用。