Stripe¶
`Stripe <https://stripe.com/>`_是一家美国在线支付解决方案提供商,允许企业接受**信用卡**和其他支付方式。
将您的Stripe账户与Odoo关联¶
凭证获取方式取决于您的托管类型:
Go to the eCommerce or the Sales app and click the Activate Stripe or the Set payments button on the onboarding banner.
填写所需信息,并提交表格。
Stripe向您发送确认电子邮件后,请确认电子邮件地址。
流程结束后,自动转至Odoo。如果您提交了所有要求的信息,则设置全部完成,且您的支付服务提供商已启用。
您可以继续:ref:
stripe/local-payment-methods
。
小技巧
要使用您自己的API密钥,activate the Developer mode。然后,您可以:ref:Fill in your credentials <stripe/api-keys>
,generate a webhook,并启用支付服务提供商。
Go to the eCommerce or the Sales app and click the Activate Stripe or the Set payments button on the onboarding banner.
填写所需信息,并提交表格。
Stripe向您发送确认电子邮件后,请确认电子邮件地址。
At the end of the process, you are redirected to the payment provider Stripe in Odoo.
启用您的支付服务提供商。
已设置完成,您可以继续:ref:
stripe/local-payment-methods
。
小技巧
To connect your Stripe account after the onboarding has already been completed, go to Connect Stripe button.
and click the重要
If you are testing Stripe (in test mode), change the State to Test Mode. We recommend doing this on a test Odoo database rather than on your main database.
填写您的凭证¶
如果需要您的**API凭证**,以便与Stripe账户连接,则您须填写以下凭证:
可发布密钥:仅用于标识Stripe账户的密钥。
密钥:使用Stripe签署商户账户的密钥。
反射API签名密钥:在Stripe账户中启用反射API时,您须设置此签名密钥,以验证Stripe向Odoo发送的消息。
要检索可发布密钥和密钥,请执行以下操作`link to your API keys <https://dashboard.stripe.com/account/apikeys>`_,或登录Stripe仪表板,并转到 。
生成反射API¶
如果需要您的**反射API签名密码**,以便与Stripe账户连接,您可以自动或手动创建反射API。
Make sure your Publishable and Secret keys are filled in, then click the Generate your Webhook button.
小技巧
To update the webhook, click once again the Generate your Webhook button.
Visit the webhooks page on Stripe, or log into your Stripe dashboard and go to . Then, click Add endpoint and insert the following data in the Listen to Stripe events form:
- In the Endpoint URL field, enter your Odoo database’s URL followed by
/payment/stripe/webhook
.例如:https://yourcompany.odoo.com/payment/stripe/webhook
At the bottom of the form, click + Select events, then:
In the Charge section, select charge.refunded and charge.refund.updated.
In the Payment Intent section, select payment_intent.amount_capturable_updated, payment_intent.payment_failed and payment_intent.succeeded.
在 设置意图`部分,选择:guilabel:`setup_intent.succeeded。
注解
可以选择其他活动,但Odoo当前不处理其他活动。
Once you have selected the events, click Add events, then Add endpoint to generate your webhook. Click Reveal to display your signing secret.
小技巧
To update an existing webhook, click on it. Then, click the three dots at the right side of the Webhook URL and select Update details.
配置选项卡¶
暂挂信用卡¶
Stripe允许您**手动捕获金额**,而非立即捕获。此功能将客户账户内的金额指定一段时间,取决于所用的付款方式。
To set it up, enable the Capture Amount Manually option in Odoo, as explained in the payment providers documentation.
警告
手动捕获功能激活后,如果您的客户选择不支持的付款方式,将无法继续进行任何付款。
小心
Odoo尚不支持捕获部分金额。请注意,来自Stripe界面的部分捕获将被Odoo管理为完整捕获。
启用本地付款方式¶
本地付款方式仅适用于特定商户和客户所在国家和币种。
Odoo支持以下本地付款方式:
Bancontact
EPS
giropay
iDEAL
Przelewy24 (P24)
To enable some of these local payment methods with Stripe go to Supported Payment Methods field. If the desired payment method is already listed, you don’t have anything to do.
and add the desired payment methods in the注解
如果数据库中没有付款图标记录,且相关本地付款方式已经列出,则视为Stripe已启用。
如果未列出本地付款方式,则表示该付款方式不受支持且无法启用。
启用快速结账¶
参见
勾选 :guilabel:`允许快速结账`复选框后,**Google Pay**立即启用,但**Apple Pay**要求额外步骤:您须在Apple注册web域。可以在Odoo中自动注册,也可以在Stripe中手动注册。
导航至您的支付服务提供商,确保其 enabled。
Go to the Configuration tab and click the Enable Apple Pay button. A notification shows that the web domain was successfully registered with Apple.
Visit the Apple pay web domains page on Stripe, or log into your Stripe dashboard and go to . Then, click Add new domain and insert the web domain of your Odoo database into the pop-up form. Odoo already hosts the verification file of Stripe. Click Add to register your web domain with Apple.
重要
web域每次变更后,均须重复此操作。