Stripe¶
Stripe 是一家总部位于美国的在线支付解决方案提供商,允许企业接受**信用卡**和其他支付方式。
使用 Odoo 创建您的 Stripe 帐户¶
To create a new Stripe account and link it to your Odoo database, make sure the company’s Email is configured in the company’s settings, then follow the steps below according to your hosting type:
导航到支付提供商 Stripe 并点击 连接 Stripe。
完成设置过程,并在 Stripe 向您发送确认电子邮件时确认您的电子邮件地址。
在流程结束时,点击 同意并提交。如果已提交所有要求的信息,您将被重定向到 Odoo,并启用支付提供商。
导航到支付提供商 Stripe 并点击 连接 Stripe。
完成设置过程,并在 Stripe 向您发送确认电子邮件时确认您的电子邮件地址。
流程结束时,点击:guilabel:
同意并提交;然后您将被重定向到 Odoo 中的支付提供商 Stripe。将 状态 字段设置为 已启用。
小技巧
If you have created an account instead of linking an existing one, enable the developer mode, then click Reset your Stripe Account on the Stripe payment provider form, then fill in your Stripe account’s credentials.
Manual credential input¶
Manual credential input is needed, for example, when linking an existing Stripe account to your Odoo database, when using an account created on Odoo.sh or On-premise, or when testing Stripe without affecting live transactions.
Stripe configuration¶
访问 Stripe <https://dashboard.stripe.com/account/apikeys>``_ 上的
API 密钥 `页面,或登录 Stripe 仪表板并访问 :menuselection:`开发者 --> API 密钥。In the Standard keys section, copy the Publishable key and the Secret key and save them for the Odoo 配置 step.
Odoo 配置¶
In the Credentials tab, fill in the Publishable Key and Secret Key fields with the values you previously saved.
Click Generate your webhook.
Configure the remaining options as needed.
将 状态 字段设置为 已启用。
小技巧
You can also test Stripe without affecting live transactions using the test mode and the API keys of your Stripe account’s Test Mode or a sandbox environment.
To link the same Stripe account to multiple companies in a database, create an account and fill in the credentials for one company, then reuse the same credentials and webhook for the others. To view the webhook, go to the Webhooks page on Stripe, or log into your Stripe dashboard and go to . Click the destination in the list, then click the (Reveal secret) icon next to the Signing secret field and copy the value.
启用 Apple Pay¶
To allow customers to use the Apple Pay button to pay for their eCommerce orders, navigate to the Stripe payment provider, then go to the Configuration tab, enable Allow Express Checkout, and click Enable Apple Pay.
小技巧
Stripe allows to manually capture and refund payments either from Odoo or directly from the Stripe dashboard.