Do you want to accept payments with Stripe in WordPress? Stripe makes it easier for site owners to accept payments on their WordPress websites. In this article, we will show you how to easily accept payments with Stripe in WordPress.
您是否要在WordPress中接受Stripe付款? Stripe使网站所有者更容易在其WordPress网站上接受付款。 在本文中,我们将向您展示如何轻松地在WordPress中使用Stripe接受付款。
Note: Stripe requires your site to be using SSL/HTTPS encryption. If you don’t already have SSL certificate for your website, then please see our step by step guide on how to add SSL in WordPress. Some WordPress hosting providers are now offering free SSL with Let’s Encrypt.
注意: Stripe要求您的站点使用SSL / HTTPS加密。 如果您的网站还没有SSL证书,请参阅有关如何在WordPress中添加SSL的分步指南。 一些WordPress托管提供商现在通过Let's Encrypt提供免费的SSL 。
There are many different ways to accept payments with Stripe in WordPress. We will cover 4 different methods, so you can choose the one that best suit your needs.
在WordPress中,有很多不同的方式可以接受Stripe付款。 我们将介绍4种不同的方法,因此您可以选择最适合您需要的一种。
For quick browsing, feel free to use the navigation links below:
为了快速浏览,请随时使用以下导航链接:
- Custom Order Form with WPForms带有WPForms的自定义订单表格
- Purchase Button with WP Simple Pay Pro带有WP Simple Pay Pro的“购买”按钮
- Online Store with WooCommerceWooCommerce在线商店
- Digital Downloads with EDD使用EDD进行数字下载
带有WPForms的WordPress中的自定义条纹订单表格 (Custom Stripe Order Forms in WordPress with WPForms)
WPForms is the best WordPress form plugin. It allows you to create custom payment forms and easily accept payments on your WordPress site using Stripe and PayPal.
WPForms是最好的WordPress表单插件 。 它允许您创建自定义付款表格,并使用Stripe和PayPal在WordPress网站上轻松接受付款。
WPForms is a paid plugin, and you will need the Pro plan to use the Stripe and PayPal addons.
WPForms是一个付费插件,您将需要Pro计划才能使用Stripe和PayPal插件。
First thing you need to do is install and activate the WPForms plugin. For more details, see our step by step guide on how to install a WordPress plugin.
您需要做的第一件事是安装并激活WPForms插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。
Upon activation, you need to visit WPForms » Settings page to enter your license key. You can get this license key from your account on WPForms website.
激活后,您需要访问WPForms»设置页面以输入许可证密钥。 您可以从WPForms网站上的帐户中获取此许可证密钥。
After verification, you need to head over to WPForms » Addons page.
验证后,您需要转到WPForms»Addons页面。
Scroll down to ‘Stripe Addon’ and click on the Install Addon button next to it.
向下滚动到“ Stripe Addon”,然后单击它旁边的“ Install Addon”按钮。
WPForms will automatically install the Stripe forms addon. You will need to click on the activate button to start using this addon.
WPForms将自动安装Stripe表单插件 。 您将需要单击激活按钮才能开始使用此插件。
Next, you need to visit WPForms » Settings page and click on the payments tab.
接下来,您需要访问WPForms»设置页面,然后单击付款选项卡。
Once there, you need to connect Stripe to your WordPress site by entering the API keys. You can get these keys from your Stripe account settings.
到达那里后,您需要通过输入API密钥将Stripe连接到WordPress网站。 您可以从Stripe帐户设置中获取这些密钥。
After entering the API keys don’t forget to click on the save button to store your settings.
输入API密钥后,不要忘记单击保存按钮来存储您的设置。
You are now ready to accept payments using Stripe in WordPress.
您现在可以在WordPress中使用Stripe接受付款了。
Next, you need to create a form to accept payments on your WordPress site.
接下来,您需要创建一个表单来接受WordPress网站上的付款。
Head over to WPForms » Add New page. This will launch the WPForms form builder interface.
转到WPForms»添加新页面。 这将启动WPForms表单构建器界面。
WPForms comes with ready to use form templates. You can select an Order/Billing form, donations form, or create a blank form.
WPForms附带了可以使用的表单模板。 您可以选择“订购/开票”表格,“捐赠”表格或创建空白表格。
You can add new form fields by clicking them from the left column. You can also edit a form field by simply clicking on it.
您可以通过单击左栏中的新字段来添加它们。 您还可以通过单击一个表单字段来编辑它。
Once you are satisfied with the form, you need to click on the Payments » Stripe tab.
对表格满意后,您需要单击付款»条纹选项卡。
Now you need to check the box next to ‘Enable Stripe payments’ option and enter a description for the payment. You can also select to send a payment receipt.
现在,您需要选中“启用分段付款”选项旁边的框,并输入付款说明。 您也可以选择发送付款收据。
Don’t forget to click on the save button to store your settings.
不要忘记单击保存按钮来存储您的设置。
You are now ready to add this form to any WordPress post or page you want.
现在,您可以将此表单添加到所需的任何WordPress帖子或页面中。
Simply create a new post or page or edit an existing one and then click on the Add Form button.
只需创建一个新的帖子或页面,或编辑一个现有的帖子或页面 ,然后单击“添加表单”按钮。
This will bring up a popup where you need to select the form you just created and click on the add form button.
这将弹出一个弹出窗口,您需要在其中选择刚刚创建的表单,然后单击添加表单按钮。
WPForms will now add the form shortcode to your WordPress post editor.
WPForms现在将表单简码添加到您的WordPress帖子编辑器中。
You can now save or publish your page and click on the preview button to see your form in action.
现在,您可以保存或发布页面,然后单击“预览”按钮以查看正在使用的表单。
带有WP Simple Pay Pro的“购买”按钮 (Purchase Button with WP Simple Pay Pro)
This method allows you to add a payment button to your WordPress site. Unlike WPForms, this method does not allow you to create custom payment forms with your own fields.
此方法使您可以向WordPress网站添加付款按钮。 与WPForms不同,此方法不允许您使用自己的字段创建自定义付款表格。
First thing you need to do is install and activate the WP Simple Pay Pro plugin. For more details, see our step by step guide on how to install a WordPress plugin.
您需要做的第一件事是安装并激活WP Simple Pay Pro插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。
Upon activation, you need to visit Simple Pay Pro » Settings page to configure plugin settings.
激活后,您需要访问Simple Pay Pro»设置页面来配置插件设置。
First, you need to add your license key. You can find this information from your account on WP Simple Pro website.
首先,您需要添加许可证密钥。 您可以在WP Simple Pro网站上的帐户中找到此信息。
Next, switch to the ‘Stripe Keys’ tab. The first option you will notice is ‘Test mode’. By default, it is turned off. This allows you to add Stripe in testing mode. Once you are ready to go live, you will need to turn it on.
接下来,切换到“条纹键”标签。 您会注意到的第一个选项是“测试模式”。 默认情况下,它是关闭的。 这使您可以在测试模式下添加Stripe。 一旦准备好上线,您将需要打开它。
Next you will need to provide your Stripe API Keys. You can get this information from your Stripe account.
接下来,您需要提供您的Stripe API密钥。 您可以从Stripe帐户获取此信息。
After entering your API Keys don’t forget to click on the save changes button to store your settings.
输入API密钥后,请不要忘记单击“保存更改”按钮来存储您的设置。
Next, you need to click on the ‘General’ tab on plugin’s settings page.
接下来,您需要点击插件设置页面上的“常规”标签。
This is where you can set site name, currency, logo, payment button label, etc.
您可以在此处设置站点名称,货币,徽标,付款按钮标签等。
You can also add redirect URLs when a payment is successful or failed. These could be any WordPress pages on your site.
付款成功或失败时,您也可以添加重定向URL。 这些可以是您网站上的任何WordPress页面。
Don’t forget to click on the save changes button to store your settings.
不要忘记单击“保存更改”按钮来存储您的设置。
Now you are ready to add a Stripe payment form to your website. Head over to Simple Pay Pro » Add New page to create a new payment form.
现在,您可以将Stripe付款表单添加到您的网站。 转到Simple Pay Pro»添加新页面以创建新的付款表格。
First you need to select a payment amount type and the amount.
首先,您需要选择付款金额类型和金额。
Next, you need to switch to on-page form display. Here you can add fields to the payment form that will be displayed on your website. Simply select a field and then click on the ‘Add button.
接下来,您需要切换到页面上的表单显示。 在这里,您可以将字段添加到将显示在您的网站上的付款表单中。 只需选择一个字段,然后单击“添加”按钮。
After that you can switch to ‘Check out overlay display’ page. You can upload your company logo, add item description, and payment button text.
之后,您可以切换到“签出覆盖显示”页面。 您可以上传公司徽标,添加商品说明和付款按钮文字。
Don’t forget to click on the ‘Create’ button to save your form settings.
不要忘记单击“创建”按钮以保存您的表单设置。
You can now head over to the post or page where you want to display the payment form. On the edit screen, click on the ‘Insert payment form’ button.
现在,您可以转到要显示付款表格的帖子或页面。 在修改屏幕上,点击“插入付款表格”按钮。
This will bring up a popup where you can select the payment form you created earlier. Click on ‘Insert payment form’ button to add the form shortcode.
这将弹出一个弹出窗口,您可以在其中选择您之前创建的付款表格。 点击“插入付款表格”按钮以添加表格简码。
You can now save your post/page and preview your website to see it in action. You will see your payment form with a button. Clicking on the button will bring up the Stripe checkout popup.
现在,您可以保存您的帖子/页面并预览您的网站以查看其运行情况。 您将看到带有按钮的付款表格。 单击该按钮将弹出Stripe checkout弹出窗口。
在WooCommerce中添加条纹支付网关 (Adding Stripe Payment Gateway in WooCommerce)
If you are running an online store with WordPress using WooCommerce, then here is how you can accept payments using Stripe.
如果您正在使用WooCommerce 使用WordPress运行在线商店 ,则可以通过以下方法使用Stripe接受付款。
First thing you need to do is install and activate the WooCommerce Stripe Payment Gateway plugin. For more details, see our step by step guide on how to install a WordPress plugin.
您需要做的第一件事是安装并激活WooCommerce Stripe Payment Gateway插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。
Upon activation, you need to visit WooCommerce » Settings page and then click on the checkout tab.
激活后,您需要访问WooCommerce»设置页面,然后单击结帐选项卡。
You will notice the new Stripe payment option on the page. Clicking on it will allow you to setup Stripe payment gateway for your WooCommerce store.
您会在页面上注意到新的Stripe付款选项。 单击它可以让您为WooCommerce商店设置Stripe付款网关。
First you need to click on the ‘Enable Stripe’ option.
首先,您需要单击“启用条纹”选项。
After that you can check the test mode button, which allow you to test Stripe payment gateway. Make sure that you uncheck this box when you are ready to accept payments.
之后,您可以检查测试模式按钮,该按钮可让您测试Stripe付款网关。 准备好接受付款时,请确保取消选中此框。
Next you need to enter your Stripe API keys. You can obtain these keys from your Stripe account settings.
接下来,您需要输入Stripe API密钥。 您可以从Stripe帐户设置中获取这些密钥。
Don’t forget to click on the save changes button store your settings.
不要忘记单击保存更改按钮来存储您的设置。
That’s all, your users will now see Stripe as a payment option on the checkout page.
就是这样,您的用户现在会在结帐页面上看到Stripe作为付款选项。
易于数字下载的条带化付款 (Stripe Payments with Easy Digital Downloads)
Easy Digital Downloads is one of the best WordPress eCommerce plugins on the market. It allows you to easily sell digital downloads from your WordPress site.
Easy Digital Downloads是市场上最好的WordPress电子商务插件之一 。 它使您可以轻松地从WordPress网站出售数字下载。
First thing you need to do is install and activate the Stripe Payment Gateway addon for Easy Digital Downloads. For more details, see our step by step guide on how to install a WordPress plugin.
您需要做的第一件事是安装并激活Stripe Payment Gateway插件,以进行Easy Digital Downloads。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。
The Stripe extension is a paid addon for Easy Digital Downloads. It costs $89 for a single site license.
Stripe扩展是Easy Digital Downloads的付费插件。 单个站点许可证的价格为89美元。
Upon activation, you need to visit Downloads » Settings page and then click on ‘Payment Gateways’ tab.
激活后,您需要访问下载»设置页面,然后单击“付款网关”选项卡。
Check the box next to Stripe to enable Stripe as a payment gateway on your website.
选中Stripe旁边的框,以启用Stripe作为您网站上的支付网关。
Click on the save changes button to store your settings.
单击保存更改按钮以存储您的设置。
Next, you need to scroll down to Stripe settings section and enter your Stripe API keys. You can get these keys from your Stripe account settings.
接下来,您需要向下滚动到Stripe settings部分,然后输入Stripe API密钥。 您可以从Stripe帐户设置中获取这些密钥。
After adding your Stripe API keys, you can configure additional settings. You can ask users for a billing address, display checkout in a modal, upload a logo for the modal, etc.
添加Stripe API密钥后,您可以配置其他设置。 您可以要求用户提供帐单邮寄地址,以模式显示结帐,上传模式的徽标等。
Don’t forget to click on the save changes button to store your changes.
不要忘记单击“保存更改”按钮来存储您的更改。
That’s all, your users will now see the option to pay using Stripe at checkout.
就是这样,您的用户现在将看到在结帐时使用Stripe进行付款的选项。
We hope this article helped you learn how to accept payments with Stripe in WordPress. You may also want to see our list of 24 must have WordPress plugins for business websites.
我们希望本文能帮助您学习如何在WordPress中使用Stripe接受付款。 您可能还希望查看我们的24个列表, 这些列表必须具有用于商业网站的WordPress插件 。
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Facebook上找到我们。
翻译自: https://www.wpbeginner.com/plugins/how-to-accept-payments-with-stripe-in-wordpress/