WWooshPayment docs
Store integration

WooCommerce integration

Connect a WooCommerce store to WooshPayment via REST API. Works with WordPress 6.0+ and WooCommerce 8.0+.

3 min read

The WooCommerce integration uses the official REST API. It works with WordPress 6.0+ and WooCommerce 8.0+. The store must be on HTTPS.

Recommended WooCommerce setup โšก โ€” You need two pieces:

  1. Official WordPress plugin to intercept the "Proceed to checkout" button without touching the theme.
  2. WooCommerce REST Consumer Key + Consumer Secret to create the real order in WooCommerce after payment.

This page covers the REST API keys. For the plugin: See plugin install.

The WordPress / WooCommerce admin screenshots are illustrative renderings (those would require WordPress admin credentials we can't ship here). Step 2 is a real screenshot of the WooshPayment Dashboard.

1. Generate the API keys in WooCommerce

WordPress Admin: WooCommerce โ†’ Settings โ†’ Advanced โ†’ REST API with Add key form for WooshPayment, Read/Write permissions

  1. WordPress Admin โ†’ WooCommerce โ†’ Settings โ†’ Advanced โ†’ REST API
  2. "Add key"
  3. Description: WooshPayment
  4. Permissions: Read/Write
  5. Save โ€” copy Consumer Key and Consumer Secret (shown only once)

Store the keys in a password manager. If you lose them, you'll have to regenerate them and WooshPayment will stop creating orders until you re-enter them.

2. Connect on WooshPayment

Real screenshot of the WooshPayment Dashboard Integrations page: WooCommerce card in "Not connected" state with the WordPress store URL, Consumer Key, Consumer Secret fields, and the "Connect" button. The Whop card sits above and marketing pixels sit below on the same page

  1. Dashboard โ†’ Integrations โ†’ WooCommerce (or the onboarding "Platform" step if this is your first setup)
  2. "WooCommerce" section โ†’ fill in:
    • Store URL: e.g. https://my-store.com (no trailing slash)
    • Consumer Key: paste
    • Consumer Secret: paste
  3. Click Connect WooCommerce โ†’ WooshPayment pings /wp-json/wc/v3/products?per_page=1 to validate the keys

Credentials are encrypted at rest (AES-256-GCM).

3. Checkout button redirect

Redirect flow: WooCommerce cart with Proceed to checkout button redirecting to the branded checkout at demo-store.wooshpayment.com

To intercept the WooCommerce checkout button, use the official WordPress plugin. The plugin reads the real cart via the WC Store API, normalizes prices/currency/coupons, preserves products and variants, and redirects to {slug}.wooshpayment.com.

โ†’ See plugin install guide

REST API keys alone create the WooCommerce order after payment, but they do not intercept the checkout button. For the public WooshPayment product, the supported WooCommerce redirect path is the official plugin. If your hosting does not allow custom plugins, contact support before launch: a custom integration must be validated case by case.

4. Verify

Verify: order #1042 visible side-by-side in WooshPayment Dashboard with Completed status and in WooCommerce โ†’ Orders with Processing status

  1. Open the store in incognito
  2. Add a product โ†’ go to the cart
  3. Click "Proceed to checkout"
  4. After the plugin is active, REST keys are valid, the active plan is in place and Whop/COD is ready, you must land on {your-slug}.wooshpayment.com/checkout/...
  5. Complete a test payment
  6. Verify the order in WooCommerce โ†’ Orders with status Processing
  7. Also verify customer/merchant emails, pixel/CAPI event and the order in Dashboard โ†’ Orders before sending traffic

Order sync

On confirmed payment we call POST /wp-json/wc/v3/orders:

  • Default status: processing (configurable)
  • Order notes: Paid via WooshPayment (session: ch_xxx)
  • payment_method: woopay (or cod for cash on delivery)
  • Customer email: WooshPayment sends the branded order confirmation; any WooCommerce emails depend on your store settings/plugins

Compatibility

PluginCompatible
WooCommerce SubscriptionsOne-time products only. Subscriptions in roadmap.
WooCommerce BookingsNot supported
Polylang / WPMLYes
WooCommerce PDF InvoicesYes
WooCommerce StripeDisable: WooshPayment uses Whop, not Stripe

Frequent issues

"401 Unauthorized" after connect

  • Check that the site is HTTPS โ€” we don't connect to HTTP
  • Reopen WooCommerce โ†’ REST API and verify the key hasn't been revoked
  • Verify that the permission is "Read/Write" (not just "Read")

Different prices between WooCommerce and WooshPayment

Often a VAT issue. WooshPayment respects WooCommerce's display_prices_including_tax. Check in WooCommerce โ†’ Settings โ†’ General โ†’ Taxes.

"Invalid cart" on the customer side

Prices changed between add-to-cart and checkout. The customer should refresh the cart and try again.

Next steps