Everyone, if they haven't already Stripe account, it is recommended to create one first.Stripe is a payment processing solution, and the plugins discussed in each approach are actual e-commerce solutions (not just for testing).
Each method provides "test pattern", but it does not hide the payment options from being displayed to visitors. So, one needs to make sure that these tests are done before the entire site goes live. Alternatively, if the site is already up and running properly, you can test Stripe on a temporary site first.
![图片[1]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227103045214-image.png)
Method 1: Testing Stripe Payments in WooCommerce
Stripe is one of the most popular payment gateways for accepting credit card payments, especially for e-commerce sites built with WooCommerce. If you are running a WooCommerce store, then this method is perfect for that.
Once the WooCommerce store is set up and ready to go, to install and activate the Stripe Payment Gateway for WooCommerce Plug-ins.
![图片[2]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226162023445-image.png)
Setting up Stripe payments
1. Activation Plugin
After activating the plugin, on the plugin page click "Start Onboarding Wizard" button to start the FunnelKit Setup Wizard.
![图片[3]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226164512671-image.png)
2. Connecting Stripe Accounts
In the Setup Wizard, click "Connect with Stripe" button to connect your existing Stripe account with WooCommerce.
![图片[4]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226164527449-image.png)
3. Log in to Stripe
Enter the email address and password associated with your Stripe account, and then click "Log in" button to continue.
![图片[5]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226165314217-image.png)
4. Select the Stripe account to connect to
If multiple Stripe accounts have been created with the same email address, select the account you want to connect to the plugin and click on "Connect" Button.
![图片[6]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226165418319-image.png)
5. Activate Payment Methods
On the next page, you will see the payment methods that can be enabled in the store, including Card payments, SEPA direct debit, iDEAL etc. Select the desired payment method and click "Save and Continue" Button.
![图片[7]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226165520257-image.png)
6. Setting up Webhooks
After setting up the payment method, the plugin will ask to set up Webhooks.
7. Select Test Mode
The plugin will then ask if you wish to use the "Test Mode" nevertheless "Actual model". Selection "Testing." option and click "Save and Review Settings" Button.
![图片[8]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226165535439-image.png)
8. Enabling Stripe as a payment gateway
Next, go to the WooCommerce settings in the "Stripe settings" Page. Check the "Enable Stripe Gateway" option and add a title and description for the payment system.
![图片[9]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226165625580-image.png)
9. Add accepted credit card types
Scroll down and enter the type of credit card you plan to accept in the store and finally click on the "Save changes" button to save the settings.
![图片[10]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226165653252-image.png)
10. Test Stripe Payments
Now, go to the WooCommerce store and open the checkout page. You'll see that Stripe has been added as a payment option and an alert message will be displayed indicating that test mode is currently enabled. You can use the Test Card Information, including future due dates and CVV codes for test payments.
![图片[11]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226165953469-image.png)
11. View Stripe Test Payment History
After completing some simulated purchases, you can purchase a simulation by visiting Stripe Dashboard and click "Payments" tab to check if Stripe has collected the payment. Here you can find details of all payments processed through the test mode.
![图片[12]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226165936153-image.png)
12. Switch to actual mode
If all test payments have been successfully processed, return to the WordPress dashboard in the "Stripe settings" Page. In the "Mode" Select from the drop-down menu "Live" option to start accepting real Stripe payments.
![图片[13]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226165918517-image.png)
Method 2: Digital Product Testing Stripe Payments
If you use WordPress Sell digital products with Stripe Collections, we recommend using Easy Digital Downloads (EDD) Plug-ins.
![图片[14]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226170154920-image.png)
It can be used to sell digital products such as eBooks, plugins, PDF files, and more. In addition, EDD has a built-in Stripe integration that allows you to test Stripe payments before your website goes live.
Setting up the Easy Digital Downloads plug-in
1. Install and activate the EDD plug-in
First, install and activate Easy Digital Downloads Plug-ins.
take note of: EDD offers a free version that works. However, upgrading to Professional Edition Only after that you can use more features like advanced reports, download restrictions, recurring payments, etc.
2. Enable Test Mode
After activating the plugin, go to the WordPress backend to the Downloads " Settings " Payments page, check the "Test Mode" Options.
3. Choose Stripe as payment option
Then, in the "Active Gateways" partial selection Stripe as a payment option.
![图片[15]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226201056524-image.png)
4. Connecting Stripe Accounts
Next, switch to the "Stripe" tab, click "Connect with Stripe" Button.
A setup wizard will open asking for the existing Stripe account Connect with the EDD. After successfully connecting, click "Save Changes" button to save the settings.
![图片[16]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250226202531385-image.png)
5. Add Digital Products
interviews "Downloads" page, click "Add New" button, which opens the block editor and allows you to add a digital product to the store. Finally, click on the "Publish" button to publish the product online.
![图片[17]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227100110507-image.png)
6. Test Stripe Payments
Now, visit the site's store and go to the checkout page.
Stripe is already set up as a payment gateway and is in test mode. Simply enter the following Test Card Information and click "Purchase" button to test the payment process:
![图片[18]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227100804727-image.png)
7. View Test Payments
If the transaction is successful, you will be taken to the purchase confirmation page to view the details of the purchase, such as "Order Status" respond in singing "Payment Methods"The
![图片[19]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227100750216-image.png)
8. Checking Test Payments in Stripe
It can also be accessed directly from the Stripe Dashboard Check for test payments. In the Stripe dashboard the "Payments" page to see details of all test payments.
![图片[20]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227100828937-image.png)
9. Switching the payment system to actual mode
When the test is complete, return to the Downloads " Settings " Payments page, uncheck the "Test Mode" option to switch the Stripe payment system to actual mode. Finally, make sure to click the "Save Changes" button to save the settings.
![图片[21]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227100838701-image.png)
Method 3: Test Stripe Payments in WordPress Payment Forms
It's more useful if you want to test Stripe payments on WordPress payment forms, especially if you're selling subscriptions, services or some products.
Step 1: Install and activate WP Simple Pay plugin
First, you need to install and activate WP Simple Pay Plug-ins.
Step 2: Setting up the plugin
1. After activating the plug-in, the Setup Wizard pops up on the screen. Click "Let's Get Started" button to start the setup.
![图片[22]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227101524811-image.png)
2. Enter license key
In the next step, enter the license key for the plugin. This can be found in your account on the WP Simple Pay website.
![图片[23]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227101613161-image.png)
3. Connecting Stripe accounts
strike (on the keyboard) "Connect with Stripe" button to connect your Stripe account with the plugin.
![图片[24]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227101625182-image.png)
4. Configuring e-mail notifications
After successfully connecting to Stripe, the plugin will ask you to configure email notifications. The option to receive payment receipts, upcoming invoices and payment notifications can be enabled and the email address used to receive these notifications can be entered.
![图片[25]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227101722809-image.png)
Step 3: Create a Payment Form
1. In the WordPress dashboard, go to WP Simple Pay " Payment Forms page, click "Create Your Payment Form" Button.
2. Selection of templates
go into "Select a template" page, select the appropriate template, for example "Payment Form" Template.
![图片[26]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227101856550-image.png)
3. Adding form titles and descriptions
![图片[27]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227101832958-image.png)
After selecting the template, you will be taken to the "Add New Payment Form" page, adding a form title and description.
![图片[28]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227102103696-image.png)
4. Setting up payment modes
switch to "Payments" tab, select "Test Mode" as a payment mode so that you can test Stripe payments on your WordPress site.
![图片[29]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227102146238-image.png)
5. Setting up tax collection
exist "Tax Collection" section, select the appropriate tax collection method for you from the drop-down menu.
Step 4: Post the payment form and test the payment
1. After completing the setup, post the form on the front-end and the bottom of the page will display "test mode" The word Stripe means that you can test Stripe payments.
![图片[30]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227102406321-image.png)
2. Payment is made with test card information:
- Card Number:
4242 4242 4242 4242
- Expiry date: Any future date
- CVC: Any three digits
3. After completing the payment, go to Stripe DashboardClick "Payments" tab to see if the Success Division has paid.
![图片[31]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227102423939-image.png)
Step 5: Switch to real-time mode
1. Upon completion of the test, return WP Simple Pay " Payment Forms page, click on the form you just posted under the "Edit" Link.
![图片[32]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227102455223-image.png)
2. In the form builder switch to the "Payments" tab, select "Live Mode" As a payment model, click "Update" button to save the changes.
![图片[33]-如何在 WordPress 中测试 Stripe 支付:WooCommerce、EDD 和支付表单测试方法](https://www.361sale.com/wp-content/uploads/2025/02/20250227102508161-image.png)
3. The website payment form will now start accepting real Stripe payments.
With these steps, you can successfully test and enable Stripe payments in WordPress.
Link to this article:https://www.361sale.com/en/34702The article is copyrighted and must be reproduced with attribution.
No comments