China Payments Plugin Documentation
Main SiteDemoPricingGet support
EN (English)
EN (English)
  • Welcome 👋
  • Getting Started
    • Quick Setup
    • Activating Payment Methods
  • Checkout Flows
    • WooCommerce
    • MemberPress
    • Simple Membership Plugin
    • LifterLMS
    • Payment Page (payment form)
  • Payment Gateways
    • Stripe
    • Planned Payment Gateways
  • Payment Methods
    • WeChat Pay
      • WeChat Pay User Experience
    • Alipay
      • Alipay User Experience
    • Credit Cards
  • Currencies
    • Supported Currencies
    • Currency Conversion API
  • Common Error Messages
    • Common WeChat Pay Error Messages
    • Common Alipay Error Messages
    • Other Errors + Plugin Conflicts
  • Troubleshooting
    • Troubleshooting Steps
    • Why are payments for WeChat Pay and Alipay getting refunded?
    • How do I add Gaucho Plugins Support to my Stripe Team?
    • Why isn't Stripe Connect working?
    • Why are payments failing in Stripe?
    • WooCommerce Order Completion
  • FAQs
    • How do I set up Stripe Webhooks?
    • Why can't I activate Alipay or WeChat Pay in my Stripe account?
    • How do WeChat Pay and Alipay work?
    • What is China Payments Plugin?
    • How does China Payments Plugin Work?
    • How do I connect with Stripe Connect?
    • How do I upgrade to the PRO or Business plans?
    • How do I set up a payment confirmation page?
    • How long are WeChat Pay QR codes valid?
    • What's the total cost of using China Payments Plugin?
    • How do I remove all plugin data on uninstallation?
    • How do I join the BETA?
    • How do I override the icons used in checkout?
  • Changelog
    • Changelog
Powered by GitBook
On this page
  • WooCommerce Order Completion
  • Payment Confirmation
  1. Troubleshooting

WooCommerce Order Completion

This page explains how WooCommerce Order Completion works in China Payments Plugin.

PreviousWhy are payments failing in Stripe?NextHow do I set up Stripe Webhooks?

Last updated 3 months ago

WooCommerce Order Completion

By default, WooCommerce will only auto-complete paid orders for products that are both Virtual and Downloadable, assuming that the shop needs to fulfill/ship any orders that don’t meet these criteria.

If your orders are not auto-completing and you want them to do so, then the workaround would be to ensure that your products are marked as both Virtual and Downloadable.

Alternatively, you can use a plugin like or .

Marking products as both Virtual and Downloadable may enable the Downloads menu item in the WooCommerce Account area accessed by users. This can be hidden with CSS.

Payment Confirmation

We've optimized China Payments Plugin with 3 methods for verifying payment confirmation:

  • User Callback

  • Cron Checks

For high-volume sites (>1 order per minute), it may be beneficial to disable the cron checks in order to optimize performance.

In order to disable cron checks, please add this custom code to your theme-functions.php file:

add_filter( 'china_payments_woocommerce_has_background_payment_check', '__return_false' );

For developers, the registered Action is china_payments_woocommerce_background_payment_check

Autocomplete WooCommerce Orders
Order Status Control
Webhook Configuration