Stripe¶
Stripe is a United States-based online payment solution provider allowing businesses to accept credit cards and other payment methods.
Create your Stripe account with Odoo¶
凭证获取方式取决于您的托管类型:
Navigate to the payment provider Stripe and click Connect Stripe.
Go through the setup process and confirm your email address when Stripe sends you a confirmation email.
At the end of the process, click Agree and submit. If all requested information has been submitted, you are then redirected to Odoo, and your payment provider is enabled.
Navigate to the payment provider Stripe and click Connect Stripe.
Go through the setup process and confirm your email address when Stripe sends you a confirmation email.
At the end of the process, click Agree and submit; you are then redirected to the payment provider Stripe in Odoo.
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。
In the Credentials tab, fill in the Publishable Key and Secret Key fields with the values you previously saved.
生成反射API¶
If your Webhook Signing Secret is required to connect with your Stripe account, you can create a webhook automatically or manually.
Make sure your Publishable and Secret keys are filled in, then click Generate your Webhook.
Go to the Webhooks page on Stripe, or log into your Stripe dashboard and go to .
In the Hosted endpoints section, click Add endpoint. Then, in the Endpoint URL field, enter your Odoo database’s URL, followed by
/payment/stripe/webhook
, e.g.,https://yourcompany.odoo.com/payment/stripe/webhook
.Click Select events at the bottom of the form, then select the following events:
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.
Click Add events.
Click Add endpoint, then click Reveal and save your Signing secret for later.
在 Odoo 中,导航至支付提供商 Stripe。
In the Credentials tab, fill the Webhook Signing Secret field with the value you previously saved.
備註
You can select other events, but they are currently not processed by 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¶
To allow customers to use the Apple Pay button to pay their eCommerce orders, go to the Configuration tab, enable Allow Express Checkout, and click Enable Apple Pay.